A better Rust ATProto crate
1{
2 "lexicon": 1,
3 "id": "app.bsky.embed.external",
4 "defs": {
5 "main": {
6 "type": "object",
7 "description": "A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post).",
8 "required": ["external"],
9 "properties": {
10 "external": {
11 "type": "ref",
12 "ref": "#external"
13 }
14 }
15 },
16 "external": {
17 "type": "object",
18 "required": ["uri", "title", "description"],
19 "properties": {
20 "uri": { "type": "string", "format": "uri" },
21 "title": { "type": "string" },
22 "description": { "type": "string" },
23 "thumb": {
24 "type": "blob",
25 "accept": ["image/*"],
26 "maxSize": 1000000
27 }
28 }
29 },
30 "view": {
31 "type": "object",
32 "required": ["external"],
33 "properties": {
34 "external": {
35 "type": "ref",
36 "ref": "#viewExternal"
37 }
38 }
39 },
40 "viewExternal": {
41 "type": "object",
42 "required": ["uri", "title", "description"],
43 "properties": {
44 "uri": { "type": "string", "format": "uri" },
45 "title": { "type": "string" },
46 "description": { "type": "string" },
47 "thumb": { "type": "string", "format": "uri" }
48 }
49 }
50 }
51}