community.gifthood.listing
Schema Diff
+46 -2
Compatibility Analysis
Breaking Changes Detected
3 breaking changes, 14 non-breaking changes.
Breaking Changes (3)
- 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") }
- ConstraintTightened ConstraintTightened { vertex_id: "community.gifthood.listing:body.category", sort: "enum", old_value: "furniture,kitchen,clothing,baby,books,instruments,electronics,tools,garden,health,pets,hobbies,food,animals,service,other", new_value: "furniture,kitchen,clothing,baby,books,instruments,electronics,tools,garden,health,pets,hobbies,food,animals,service,office,other" }
Non-Breaking Changes (14)
- 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" }
- AddedVertex AddedVertex { vertex_id: "community.gifthood.listing:body.mode" }
- AddedVertex AddedVertex { vertex_id: "community.gifthood.listing:body.paused" }
- AddedVertex AddedVertex { vertex_id: "community.gifthood.listing:body.standing" }
- 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", tgt: "community.gifthood.listing:body.mode", kind: "prop", name: Some("mode") }
- AddedEdge AddedEdge { src: "community.gifthood.listing:body", tgt: "community.gifthood.listing:body.paused", kind: "prop", name: Some("paused") }
- AddedEdge AddedEdge { src: "community.gifthood.listing:body", tgt: "community.gifthood.listing:body.standing", kind: "prop", name: Some("standing") }
- 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" }AddedVertex { vertex_id: "community.gifthood.listing:body.mode" }AddedVertex { vertex_id: "community.gifthood.listing:body.paused" }AddedVertex { vertex_id: "community.gifthood.listing:body.standing" }
Constraint Changes
- ConstraintTightened ConstraintTightened { vertex_id: "community.gifthood.listing:body.category", sort: "enum", old_value: "furniture,kitchen,clothing,baby,books,instruments,electronics,tools,garden,health,pets,hobbies,food,animals,service,other", new_value: "furniture,kitchen,clothing,baby,books,instruments,electronics,tools,garden,health,pets,hobbies,food,animals,service,office,other" }
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", tgt: "community.gifthood.listing:body.mode", kind: "prop", name: Some("mode") }
- Non-breaking: AddedEdge { src: "community.gifthood.listing:body", tgt: "community.gifthood.listing:body.paused", kind: "prop", name: Some("paused") }
- Non-breaking: AddedEdge { src: "community.gifthood.listing:body", tgt: "community.gifthood.listing:body.standing", kind: "prop", name: Some("standing") }
- 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
-
"description": "Optional single-level category for opt-out feed filtering. Append-only enum; unknown or missing values index as 'other'. Never used for proximity or safety logic.",
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",
45
+
"office",
27
46
"other"
28
47
],
29
48
"type": "string"
30
49
},
31
50
"createdAt": {
32
51
"format": "datetime",
33
52
"type": "string"
34
53
},
35
54
"description": {
36
55
"description": "Required free text describing the item being offered or requested.",
37
56
"maxGraphemes": 1500,
38
57
"maxLength": 3000,
39
58
"minGraphemes": 1,
40
59
"minLength": 1,
41
60
"type": "string"
42
61
},
43
62
"facets": {
44
-
"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 direct-message-only.",
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.",
45
64
"items": {
46
65
"ref": "app.bsky.richtext.facet",
47
66
"type": "ref"
48
67
},
49
68
"type": "array"
50
69
},
51
70
"geohash": {
52
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.",
53
72
"maxLength": 6,
54
73
"minLength": 1,
55
74
"type": "string"
56
75
},
57
76
"imageAlts": {
58
77
"description": "Alt text for images, parallel to the images array by index.",
59
78
"items": {
60
79
"maxGraphemes": 1000,
61
80
"type": "string"
62
81
},
63
82
"maxLength": 4,
64
83
"type": "array"
65
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
+
},
66
94
"images": {
67
95
"description": "Up to 4 images of the item, stored as blobs in the poster's repo.",
68
96
"items": {
69
97
"accept": [
70
98
"image/jpeg",
71
99
"image/png",
72
100
"image/webp"
73
101
],
74
102
"maxSize": 1000000,
75
103
"type": "blob"
76
104
},
77
105
"maxLength": 4,
78
106
"type": "array"
79
107
},
80
108
"intent": {
81
109
"description": "Whether the poster is giving away an item or looking for one.",
82
110
"enum": [
83
111
"offer",
84
112
"request"
85
113
],
86
114
"type": "string"
87
115
},
88
116
"labels": {
89
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.",
90
118
"refs": [
91
119
"com.atproto.label.defs#selfLabels"
92
120
],
93
121
"type": "union"
94
122
},
95
123
"langs": {
96
124
"description": "Language(s) the content is written in, as BCP-47 language tags. Author-asserted; clients default from the composer's locale.",
97
125
"items": {
98
126
"format": "language",
99
127
"type": "string"
100
128
},
101
129
"maxLength": 3,
102
130
"type": "array"
103
131
},
104
132
"locationName": {
105
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.",
106
134
"maxGraphemes": 100,
107
135
"maxLength": 300,
108
136
"type": "string"
109
137
},
138
+
"mode": {
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'.",
140
+
"enum": [
141
+
"gift",
142
+
"lend"
143
+
],
144
+
"type": "string"
145
+
},
146
+
"paused": {
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.",
148
+
"type": "boolean"
149
+
},
150
+
"standing": {
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.",
152
+
"type": "boolean"
153
+
},
110
154
"status": {
111
155
"description": "Current availability. Clients should treat a missing value as 'available'.",
112
156
"enum": [
113
157
"available",
114
158
"pending",
115
159
"gone"
116
160
],
117
161
"type": "string"
118
162
},
119
163
"title": {
120
164
"description": "Required short title for the item being offered or requested.",
121
165
"maxGraphemes": 100,
122
166
"maxLength": 200,
123
167
"minGraphemes": 1,
124
168
"minLength": 1,
125
169
"type": "string"
126
170
}
127
171
},
128
172
"required": [
129
173
"title",
130
174
"intent",
131
175
"description",
132
176
"geohash",
133
177
"createdAt"
134
178
],
135
179
"type": "object"
136
180
},
137
181
"type": "record"
138
182
}
139
183
},
140
184
"id": "community.gifthood.listing",
141
185
"lexicon": 1
142
186
}