atproto blogging
1{
2 "lexicon": 1,
3 "id": "pub.leaflet.document",
4 "revision": 1,
5 "description": "A lexicon for long form rich media documents",
6 "defs": {
7 "main": {
8 "type": "record",
9 "description": "Record containing a document",
10 "key": "tid",
11 "record": {
12 "type": "object",
13 "required": [
14 "pages",
15 "author",
16 "title"
17 ],
18 "properties": {
19 "author": {
20 "type": "string",
21 "format": "at-identifier"
22 },
23 "description": {
24 "type": "string",
25 "maxLength": 3000,
26 "maxGraphemes": 300
27 },
28 "pages": {
29 "type": "array",
30 "items": {
31 "type": "union",
32 "refs": [
33 "pub.leaflet.pages.linearDocument",
34 "pub.leaflet.pages.canvas"
35 ]
36 }
37 },
38 "postRef": {
39 "type": "ref",
40 "ref": "com.atproto.repo.strongRef"
41 },
42 "publication": {
43 "type": "string",
44 "format": "at-uri"
45 },
46 "publishedAt": {
47 "type": "string",
48 "format": "datetime"
49 },
50 "tags": {
51 "type": "array",
52 "items": {
53 "type": "string",
54 "maxLength": 50
55 }
56 },
57 "theme": {
58 "type": "ref",
59 "ref": "pub.leaflet.publication#theme"
60 },
61 "title": {
62 "type": "string",
63 "maxLength": 1280,
64 "maxGraphemes": 128
65 }
66 }
67 }
68 }
69 }
70}