atproto blogging
at main 83 lines 1.8 kB view raw
1{ 2 "lexicon": 1, 3 "id": "pub.leaflet.comment", 4 "revision": 1, 5 "description": "A lexicon for comments on documents", 6 "defs": { 7 "linearDocumentQuote": { 8 "type": "object", 9 "required": [ 10 "document", 11 "quote" 12 ], 13 "properties": { 14 "document": { 15 "type": "string", 16 "format": "at-uri" 17 }, 18 "quote": { 19 "type": "ref", 20 "ref": "pub.leaflet.pages.linearDocument#quote" 21 } 22 } 23 }, 24 "main": { 25 "type": "record", 26 "description": "Record containing a comment", 27 "key": "tid", 28 "record": { 29 "type": "object", 30 "required": [ 31 "subject", 32 "plaintext", 33 "createdAt" 34 ], 35 "properties": { 36 "attachment": { 37 "type": "union", 38 "refs": [ 39 "#linearDocumentQuote" 40 ] 41 }, 42 "createdAt": { 43 "type": "string", 44 "format": "datetime" 45 }, 46 "facets": { 47 "type": "array", 48 "items": { 49 "type": "ref", 50 "ref": "pub.leaflet.richtext.facet" 51 } 52 }, 53 "onPage": { 54 "type": "string" 55 }, 56 "plaintext": { 57 "type": "string" 58 }, 59 "reply": { 60 "type": "ref", 61 "ref": "#replyRef" 62 }, 63 "subject": { 64 "type": "string", 65 "format": "at-uri" 66 } 67 } 68 } 69 }, 70 "replyRef": { 71 "type": "object", 72 "required": [ 73 "parent" 74 ], 75 "properties": { 76 "parent": { 77 "type": "string", 78 "format": "at-uri" 79 } 80 } 81 } 82 } 83}