Skip to content

Commit 7804865

Browse files
committed
Add embed and image definitions to post lexicon
1 parent 2ca32a5 commit 7804865

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

lexicons/app/flashes/feed/post.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
"description": "The primary post content. May be an empty string, if there are embeds."
1818
},
1919
"reply": { "type": "ref", "ref": "#replyRef" },
20+
"embed": {
21+
"type": "ref",
22+
"ref": "#embedImages"
23+
},
2024
"langs": {
2125
"type": "array",
2226
"description": "Indicates human language of post primary text content.",
@@ -49,6 +53,34 @@
4953
"root": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
5054
"parent": { "type": "ref", "ref": "com.atproto.repo.strongRef" }
5155
}
56+
},
57+
"embedImages": {
58+
"type": "object",
59+
"required": ["images"],
60+
"properties": {
61+
"images": {
62+
"type": "array",
63+
"items": { "type": "ref", "ref": "#image" },
64+
"maxLength": 4
65+
}
66+
}
67+
},
68+
"image": {
69+
"type": "object",
70+
"required": ["image", "alt"],
71+
"properties": {
72+
"image": { "type": "blob", "accept": ["image/*"], "maxSize": 1000000 },
73+
"alt": { "type": "string", "maxGraphemes": 1000, "maxLength": 10000 },
74+
"aspectRatio": { "type": "ref", "ref": "#aspectRatio" }
75+
}
76+
},
77+
"aspectRatio": {
78+
"type": "object",
79+
"required": ["width", "height"],
80+
"properties": {
81+
"width": { "type": "integer", "minimum": 1 },
82+
"height": { "type": "integer", "minimum": 1 }
83+
}
5284
}
5385
}
5486
}

0 commit comments

Comments
 (0)