com.barryfrost.checkin
Schema Diff
+39 -20
Compatibility Analysis
Breaking Changes Detected
7 breaking changes, 11 non-breaking changes.
Breaking Changes (7)
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "com.barryfrost.checkin#photo", src: "com.barryfrost.checkin#photo", tgt: "com.barryfrost.checkin#photo.image", kind: "prop", name: Some("image") }
- RequiredEdgeRemoved RequiredEdgeRemoved { vertex_id: "com.barryfrost.checkin:body.photos:items", src: "com.barryfrost.checkin:body.photos:items", tgt: "com.barryfrost.checkin:body.photos:items.image", kind: "prop", name: Some("image") }
- RemovedVertex RemovedVertex { vertex_id: "com.barryfrost.checkin:body.photos:items.alt" }
- RemovedVertex RemovedVertex { vertex_id: "com.barryfrost.checkin:body.photos:items.image" }
- RemovedEdge RemovedEdge { src: "com.barryfrost.checkin:body.photos:items", tgt: "com.barryfrost.checkin:body.photos:items.alt", kind: "prop", name: Some("alt") }
- KindChanged KindChanged { vertex_id: "com.barryfrost.checkin:body.photos:items", old_kind: "object", new_kind: "ref" }
- ConstraintAdded ConstraintAdded { vertex_id: "com.barryfrost.checkin:body.photos:items", sort: "ref", value: "#photo" }
Non-Breaking Changes (11)
- AddedVertex AddedVertex { vertex_id: "com.barryfrost.checkin#photo" }
- AddedVertex AddedVertex { vertex_id: "com.barryfrost.checkin#photo.alt" }
- AddedVertex AddedVertex { vertex_id: "com.barryfrost.checkin#photo.image" }
- AddedVertex AddedVertex { vertex_id: "com.barryfrost.checkin:body.address" }
- AddedVertex AddedVertex { vertex_id: "com.barryfrost.checkin:body.category" }
- AddedVertex AddedVertex { vertex_id: "com.barryfrost.checkin:body.comment" }
- AddedEdge AddedEdge { src: "com.barryfrost.checkin#photo", tgt: "com.barryfrost.checkin#photo.alt", kind: "prop", name: Some("alt") }
- AddedEdge AddedEdge { src: "com.barryfrost.checkin:body", tgt: "com.barryfrost.checkin:body.address", kind: "prop", name: Some("address") }
- AddedEdge AddedEdge { src: "com.barryfrost.checkin:body", tgt: "com.barryfrost.checkin:body.category", kind: "prop", name: Some("category") }
- AddedEdge AddedEdge { src: "com.barryfrost.checkin:body", tgt: "com.barryfrost.checkin:body.comment", kind: "prop", name: Some("comment") }
- AddedEdge AddedEdge { src: "com.barryfrost.checkin:body.photos:items", tgt: "com.barryfrost.checkin#photo", kind: "ref", name: None }
Migration Guidance
Removed Elements
RemovedVertex { vertex_id: "com.barryfrost.checkin:body.photos:items.alt" }RemovedVertex { vertex_id: "com.barryfrost.checkin:body.photos:items.image" }
Added Elements
AddedVertex { vertex_id: "com.barryfrost.checkin#photo" }AddedVertex { vertex_id: "com.barryfrost.checkin#photo.alt" }AddedVertex { vertex_id: "com.barryfrost.checkin#photo.image" }AddedVertex { vertex_id: "com.barryfrost.checkin:body.address" }AddedVertex { vertex_id: "com.barryfrost.checkin:body.category" }AddedVertex { vertex_id: "com.barryfrost.checkin:body.comment" }
Constraint Changes
- ConstraintAdded ConstraintAdded { vertex_id: "com.barryfrost.checkin:body.photos:items", sort: "ref", value: "#photo" }
Additional Notes
- Breaking: RequiredEdgeAdded { vertex_id: "com.barryfrost.checkin#photo", src: "com.barryfrost.checkin#photo", tgt: "com.barryfrost.checkin#photo.image", kind: "prop", name: Some("image") }
- Breaking: RequiredEdgeRemoved { vertex_id: "com.barryfrost.checkin:body.photos:items", src: "com.barryfrost.checkin:body.photos:items", tgt: "com.barryfrost.checkin:body.photos:items.image", kind: "prop", name: Some("image") }
- Breaking: RemovedEdge { src: "com.barryfrost.checkin:body.photos:items", tgt: "com.barryfrost.checkin:body.photos:items.alt", kind: "prop", name: Some("alt") }
- Breaking: KindChanged { vertex_id: "com.barryfrost.checkin:body.photos:items", old_kind: "object", new_kind: "ref" }
- Non-breaking: AddedEdge { src: "com.barryfrost.checkin#photo", tgt: "com.barryfrost.checkin#photo.alt", kind: "prop", name: Some("alt") }
- Non-breaking: AddedEdge { src: "com.barryfrost.checkin:body", tgt: "com.barryfrost.checkin:body.address", kind: "prop", name: Some("address") }
- Non-breaking: AddedEdge { src: "com.barryfrost.checkin:body", tgt: "com.barryfrost.checkin:body.category", kind: "prop", name: Some("category") }
- Non-breaking: AddedEdge { src: "com.barryfrost.checkin:body", tgt: "com.barryfrost.checkin:body.comment", kind: "prop", name: Some("comment") }
- Non-breaking: AddedEdge { src: "com.barryfrost.checkin:body.photos:items", tgt: "com.barryfrost.checkin#photo", kind: "ref", name: None }
1
1
{
2
2
"id": "com.barryfrost.checkin",
3
3
"defs": {
4
4
"main": {
5
-
"key": "tid",
5
+
"key": "any",
6
6
"type": "record",
7
7
"record": {
8
8
"type": "object",
9
9
"required": [
10
10
"createdAt",
11
11
"location"
12
12
],
13
13
"properties": {
14
14
"photos": {
15
15
"type": "array",
16
16
"items": {
17
-
"type": "object",
18
-
"required": [
19
-
"image"
20
-
],
21
-
"properties": {
22
-
"alt": {
23
-
"type": "string",
24
-
"maxLength": 1000
25
-
},
26
-
"image": {
27
-
"type": "blob",
28
-
"accept": [
29
-
"image/jpeg",
30
-
"image/png",
31
-
"image/webp"
32
-
],
33
-
"maxSize": 1000000
34
-
}
35
-
}
17
+
"ref": "#photo",
18
+
"type": "ref"
36
19
},
37
20
"maxLength": 8,
38
21
"description": "Photos taken at the checkin, uploaded as PDS blobs"
39
22
},
23
+
"address": {
24
+
"type": "string",
25
+
"maxLength": 500,
26
+
"description": "Formatted venue address, e.g. \"123 High Street, London, UK\""
27
+
},
28
+
"comment": {
29
+
"type": "string",
30
+
"maxLength": 1000,
31
+
"description": "Optional user comment (Swarm \"shout\") attached to the checkin"
32
+
},
33
+
"category": {
34
+
"type": "string",
35
+
"maxLength": 100,
36
+
"description": "Primary Foursquare venue category, e.g. \"Coffee Shop\""
37
+
},
40
38
"location": {
41
39
"ref": "community.lexicon.location.fsq",
42
40
"type": "ref",
43
41
"description": "The Foursquare place where the checkin occurred"
44
42
},
45
43
"createdAt": {
46
44
"type": "string",
47
45
"format": "datetime",
48
46
"description": "ISO 8601 timestamp of the checkin"
49
47
}
50
48
}
51
49
},
52
50
"description": "A physical location checkin on Foursquare/Swarm"
51
+
},
52
+
"photo": {
53
+
"type": "object",
54
+
"required": [
55
+
"image"
56
+
],
57
+
"properties": {
58
+
"alt": {
59
+
"type": "string",
60
+
"maxLength": 1000
61
+
},
62
+
"image": {
63
+
"type": "blob",
64
+
"accept": [
65
+
"image/jpeg",
66
+
"image/png",
67
+
"image/webp"
68
+
],
69
+
"maxSize": 1000000
70
+
}
71
+
}
53
72
}
54
73
},
55
74
"$type": "com.atproto.lexicon.schema",
56
75
"lexicon": 1
57
76
}