A better Rust ATProto crate
1{
2 "lexicon": 1,
3 "id": "app.bsky.embed.images",
4 "defs": {
5 "main": {
6 "type": "object",
7 "required": ["images"],
8 "properties": {
9 "images": {
10 "type": "array",
11 "items": {
12 "type": "ref",
13 "ref": "#image"
14 },
15 "maxLength": 4
16 }
17 }
18 },
19 "image": {
20 "type": "object",
21 "required": ["image", "alt"],
22 "properties": {
23 "image": {
24 "type": "blob",
25 "accept": ["image/png", "image/jpeg"],
26 "maxSize": 1000000
27 },
28 "alt": {
29 "type": "string",
30 "maxGraphemes": 10000
31 },
32 "aspectRatio": {
33 "type": "ref",
34 "ref": "#aspectRatio"
35 }
36 }
37 },
38 "aspectRatio": {
39 "type": "object",
40 "required": ["width", "height"],
41 "properties": {
42 "width": {
43 "type": "integer",
44 "minimum": 1
45 },
46 "height": {
47 "type": "integer",
48 "minimum": 1
49 }
50 }
51 },
52 "viewImage": {
53 "type": "token"
54 }
55 }
56}