community.gifthood.listing
Schema Diff
+27 -0
Compatibility Analysis
Breaking Changes Detected
2 breaking changes, 8 non-breaking changes.
Breaking Changes (2)
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "community.gifthood.listing#aspectRatio", src: "community.gifthood.listing#aspectRatio", tgt: "community.gifthood.listing#aspectRatio.height", kind: "prop", name: Some("height") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "community.gifthood.listing#aspectRatio", src: "community.gifthood.listing#aspectRatio", tgt: "community.gifthood.listing#aspectRatio.width", kind: "prop", name: Some("width") }
Non-Breaking Changes (8)
- AddedVertex AddedVertex { vertex_id: "community.gifthood.listing#aspectRatio" }
- AddedVertex AddedVertex { vertex_id: "community.gifthood.listing#aspectRatio.height" }
- AddedVertex AddedVertex { vertex_id: "community.gifthood.listing#aspectRatio.width" }
- AddedVertex AddedVertex { vertex_id: "community.gifthood.listing:body.imageAspectRatios" }
- AddedVertex AddedVertex { vertex_id: "community.gifthood.listing:body.imageAspectRatios:items" }
- AddedEdge AddedEdge { src: "community.gifthood.listing:body", tgt: "community.gifthood.listing:body.imageAspectRatios", kind: "prop", name: Some("imageAspectRatios") }
- AddedEdge AddedEdge { src: "community.gifthood.listing:body.imageAspectRatios", tgt: "community.gifthood.listing:body.imageAspectRatios:items", kind: "items", name: None }
- AddedEdge AddedEdge { src: "community.gifthood.listing:body.imageAspectRatios:items", tgt: "community.gifthood.listing#aspectRatio", kind: "ref", name: None }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "community.gifthood.listing#aspectRatio" }AddedVertex { vertex_id: "community.gifthood.listing#aspectRatio.height" }AddedVertex { vertex_id: "community.gifthood.listing#aspectRatio.width" }AddedVertex { vertex_id: "community.gifthood.listing:body.imageAspectRatios" }AddedVertex { vertex_id: "community.gifthood.listing:body.imageAspectRatios:items" }
Additional Notes
- Breaking: RequiredEdgeAdded { vertex_id: "community.gifthood.listing#aspectRatio", src: "community.gifthood.listing#aspectRatio", tgt: "community.gifthood.listing#aspectRatio.height", kind: "prop", name: Some("height") }
- Breaking: RequiredEdgeAdded { vertex_id: "community.gifthood.listing#aspectRatio", src: "community.gifthood.listing#aspectRatio", tgt: "community.gifthood.listing#aspectRatio.width", kind: "prop", name: Some("width") }
- Non-breaking: AddedEdge { src: "community.gifthood.listing:body", tgt: "community.gifthood.listing:body.imageAspectRatios", kind: "prop", name: Some("imageAspectRatios") }
- Non-breaking: AddedEdge { src: "community.gifthood.listing:body.imageAspectRatios", tgt: "community.gifthood.listing:body.imageAspectRatios:items", kind: "items", name: None }
- Non-breaking: AddedEdge { src: "community.gifthood.listing:body.imageAspectRatios:items", tgt: "community.gifthood.listing#aspectRatio", kind: "ref", name: None }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
+
"aspectRatio": {
5
+
"description": "width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.",
6
+
"properties": {
7
+
"height": {
8
+
"minimum": 1,
9
+
"type": "integer"
10
+
},
11
+
"width": {
12
+
"minimum": 1,
13
+
"type": "integer"
14
+
}
15
+
},
16
+
"required": [
17
+
"width",
18
+
"height"
19
+
],
20
+
"type": "object"
21
+
},
4
22
"main": {
5
23
"description": "An offer or request for a free item, discoverable by approximate location.",
6
24
"key": "tid",
7
25
"record": {
8
26
"properties": {
9
27
"category": {
10
28
"description": "Optional single-level category for opt-out feed filtering. Additive-only enum (values may be inserted, never removed or renamed); unknown or missing values index as 'other'. Never used for proximity or safety logic.",
11
29
"enum": [
12
30
"furniture",
13
31
"kitchen",
14
32
"clothing",
15
33
"baby",
16
34
"books",
17
35
"instruments",
18
36
"electronics",
19
37
"tools",
20
38
"garden",
21
39
"health",
22
40
"pets",
23
41
"hobbies",
24
42
"food",
25
43
"animals",
26
44
"service",
27
45
"office",
28
46
"other"
29
47
],
30
48
"type": "string"
31
49
},
32
50
"createdAt": {
33
51
"format": "datetime",
34
52
"type": "string"
35
53
},
36
54
"description": {
37
55
"description": "Required free text describing the item being offered or requested.",
38
56
"maxGraphemes": 1500,
39
57
"maxLength": 3000,
40
58
"minGraphemes": 1,
41
59
"minLength": 1,
42
60
"type": "string"
43
61
},
44
62
"facets": {
45
63
"description": "Annotations over `description` (mentions, links) keyed by UTF-8 byte range. Reuses app.bsky.richtext.facet for atmosphere-wide interop. Author-asserted at compose time; clients MUST treat them as display hints, re-validate ranges, and never trust a facet URI over the visible text. Addresses and phone numbers are deliberately NOT faceted here — those affordances are private-message-only.",
46
64
"items": {
47
65
"ref": "app.bsky.richtext.facet",
48
66
"type": "ref"
49
67
},
50
68
"type": "array"
51
69
},
52
70
"geohash": {
53
71
"description": "Approximate location as a geohash, precision 6 (~1.2km cell). This is a privacy floor: indexers MUST truncate any finer-precision value to 6 characters before indexing or display.",
54
72
"maxLength": 6,
55
73
"minLength": 1,
56
74
"type": "string"
57
75
},
58
76
"imageAlts": {
59
77
"description": "Alt text for images, parallel to the images array by index.",
60
78
"items": {
61
79
"maxGraphemes": 1000,
62
80
"type": "string"
63
81
},
64
82
"maxLength": 4,
65
83
"type": "array"
66
84
},
85
+
"imageAspectRatios": {
86
+
"description": "Aspect ratio of each image, parallel to the images array by index. Written by the composer from the encoded upload so viewers can size the image box before the bytes arrive. Absent on listings posted before the field existed.",
87
+
"items": {
88
+
"ref": "#aspectRatio",
89
+
"type": "ref"
90
+
},
91
+
"maxLength": 4,
92
+
"type": "array"
93
+
},
67
94
"images": {
68
95
"description": "Up to 4 images of the item, stored as blobs in the poster's repo.",
69
96
"items": {
70
97
"accept": [
71
98
"image/jpeg",
72
99
"image/png",
73
100
"image/webp"
74
101
],
75
102
"maxSize": 1000000,
76
103
"type": "blob"
77
104
},
78
105
"maxLength": 4,
79
106
"type": "array"
80
107
},
81
108
"intent": {
82
109
"description": "Whether the poster is giving away an item or looking for one.",
83
110
"enum": [
84
111
"offer",
85
112
"request"
86
113
],
87
114
"type": "string"
88
115
},
89
116
"labels": {
90
117
"description": "Self-labels set by the author. Used to flag mature/adult content (e.g. the global 'sexual' value), which the AppView gates behind an opt-in.",
91
118
"refs": [
92
119
"com.atproto.label.defs#selfLabels"
93
120
],
94
121
"type": "union"
95
122
},
96
123
"langs": {
97
124
"description": "Language(s) the content is written in, as BCP-47 language tags. Author-asserted; clients default from the composer's locale.",
98
125
"items": {
99
126
"format": "language",
100
127
"type": "string"
101
128
},
102
129
"maxLength": 3,
103
130
"type": "array"
104
131
},
105
132
"locationName": {
106
133
"description": "Optional human-readable area name. App-populated via reverse geocoding of the geohash cell. Display only; MUST NOT be used for proximity matching or filtering.",
107
134
"maxGraphemes": 100,
108
135
"maxLength": 300,
109
136
"type": "string"
110
137
},
111
138
"mode": {
112
139
"description": "How the item changes hands. 'gift' (the default when absent) transfers ownership; 'lend' expects the item back — the listing behaves as a standing offer and each exchange gains a return leg (see exchange.returnedAt). Readers MUST treat unknown or missing values as 'gift'.",
113
140
"enum": [
114
141
"gift",
115
142
"lend"
116
143
],
117
144
"type": "string"
118
145
},
119
146
"paused": {
120
147
"description": "Owner-set temporary unavailability (using the item themselves, away for a while). AppViews hide paused listings from feeds but keep the detail view reachable with interest disabled. Absent means active. Orthogonal to status; 'gone' still wins.",
121
148
"type": "boolean"
122
149
},
123
150
"standing": {
124
151
"description": "Standing (renewing) offer: the owner can run exchange chains with multiple neighbors over time. Absent or false means the listing is exhausted by a single exchange. AppViews keep a standing listing available while chains run; only the owner's manual 'gone' ends it.",
125
152
"type": "boolean"
126
153
},
127
154
"status": {
128
155
"description": "Current availability. Clients should treat a missing value as 'available'.",
129
156
"enum": [
130
157
"available",
131
158
"pending",
132
159
"gone"
133
160
],
134
161
"type": "string"
135
162
},
136
163
"title": {
137
164
"description": "Required short title for the item being offered or requested.",
138
165
"maxGraphemes": 100,
139
166
"maxLength": 200,
140
167
"minGraphemes": 1,
141
168
"minLength": 1,
142
169
"type": "string"
143
170
}
144
171
},
145
172
"required": [
146
173
"title",
147
174
"intent",
148
175
"description",
149
176
"geohash",
150
177
"createdAt"
151
178
],
152
179
"type": "object"
153
180
},
154
181
"type": "record"
155
182
}
156
183
},
157
184
"id": "community.gifthood.listing",
158
185
"lexicon": 1
159
186
}