An ATProto Lexicon validator for Gleam.
1{
2 "lexicon": 1,
3 "id": "com.example.post",
4 "defs": {
5 "main": {
6 "type": "record",
7 "key": "tid",
8 "record": {
9 "type": "object",
10 "required": ["text", "createdAt"],
11 "properties": {
12 "text": {
13 "type": "string",
14 "maxLength": 300
15 },
16 "author": {
17 "type": "ref",
18 "ref": "com.example.user#profile"
19 },
20 "createdAt": {
21 "type": "string",
22 "format": "datetime"
23 },
24 "reply": {
25 "type": "ref",
26 "ref": "#replyRef"
27 }
28 }
29 }
30 },
31 "replyRef": {
32 "type": "object",
33 "required": ["parent", "root"],
34 "properties": {
35 "parent": {
36 "type": "ref",
37 "ref": "com.atproto.repo.strongRef"
38 },
39 "root": {
40 "type": "ref",
41 "ref": "com.atproto.repo.strongRef"
42 }
43 }
44 }
45 }
46}