+++ title = "MLF - Matt's Lexicon Format" description = "A human-friendly DSL for ATProto Lexicons" template = "index.html" [extra] mlf_example = '''```mlf /// A forum thread record thread { /// Thread title title!: string constrained { maxLength: 200, minLength: 1, }, /// Thread body content body!: string constrained { maxLength: 10000, }, /// Thread creation timestamp createdAt!: Datetime, } ```''' json_example = '''```json { "$type": "com.atproto.lexicon.schema", "lexicon": 1, "id": "com.example.thread", "defs": { "main": { "type": "record", "description": "A forum thread", "key": "tid", "record": { "type": "object", "required": ["title", "body", "createdAt"], "properties": { "title": { "type": "string", "maxLength": 200, "minLength": 1, "description": "Thread title" }, "body": { "type": "string", "maxLength": 10000, "description": "Thread body content" }, "createdAt": { "type": "string", "format": "datetime", "description": "Thread creation timestamp" } } } } } } ```''' +++