org.passingreads.book.registration
Schema Diff
+10 -16
Compatibility Analysis
Breaking Changes Detected
7 breaking changes, 5 non-breaking changes.
Breaking Changes (7)
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "org.passingreads.book.registration:body", src: "org.passingreads.book.registration:body", tgt: "org.passingreads.book.registration:body.signatures", kind: "prop", name: Some("signatures") }
- RequiredEdgeRemoved RequiredEdgeRemoved { vertex_id: "org.passingreads.book.registration:body", src: "org.passingreads.book.registration:body", tgt: "org.passingreads.book.registration:body.bookPub", kind: "prop", name: Some("bookPub") }
- RequiredEdgeRemoved RequiredEdgeRemoved { vertex_id: "org.passingreads.book.registration:body", src: "org.passingreads.book.registration:body", tgt: "org.passingreads.book.registration:body.did", kind: "prop", name: Some("did") }
- RequiredEdgeRemoved RequiredEdgeRemoved { vertex_id: "org.passingreads.book.registration:body", src: "org.passingreads.book.registration:body", tgt: "org.passingreads.book.registration:body.bookSig", kind: "prop", name: Some("bookSig") }
- RemovedVertex RemovedVertex { vertex_id: "org.passingreads.book.registration:body.bookPub" }
- RemovedVertex RemovedVertex { vertex_id: "org.passingreads.book.registration:body.bookSig" }
- RemovedVertex RemovedVertex { vertex_id: "org.passingreads.book.registration:body.did" }
Non-Breaking Changes (5)
- AddedVertex AddedVertex { vertex_id: "org.passingreads.book.registration:body.signatures" }
- AddedVertex AddedVertex { vertex_id: "org.passingreads.book.registration:body.signatures:items" }
- AddedVertex AddedVertex { vertex_id: "org.passingreads.signature.book#main" }
- AddedEdge AddedEdge { src: "org.passingreads.book.registration:body.signatures", tgt: "org.passingreads.book.registration:body.signatures:items", kind: "items", name: None }
- AddedEdge AddedEdge { src: "org.passingreads.book.registration:body.signatures:items", tgt: "org.passingreads.signature.book#main", kind: "ref", name: None }
Migration Guidance
Removed Elements
RemovedVertex { vertex_id: "org.passingreads.book.registration:body.bookPub" }RemovedVertex { vertex_id: "org.passingreads.book.registration:body.bookSig" }RemovedVertex { vertex_id: "org.passingreads.book.registration:body.did" }
Added Elements
AddedVertex { vertex_id: "org.passingreads.book.registration:body.signatures" }AddedVertex { vertex_id: "org.passingreads.book.registration:body.signatures:items" }AddedVertex { vertex_id: "org.passingreads.signature.book#main" }
Additional Notes
- Breaking: RequiredEdgeAdded { vertex_id: "org.passingreads.book.registration:body", src: "org.passingreads.book.registration:body", tgt: "org.passingreads.book.registration:body.signatures", kind: "prop", name: Some("signatures") }
- Breaking: RequiredEdgeRemoved { vertex_id: "org.passingreads.book.registration:body", src: "org.passingreads.book.registration:body", tgt: "org.passingreads.book.registration:body.bookPub", kind: "prop", name: Some("bookPub") }
- Breaking: RequiredEdgeRemoved { vertex_id: "org.passingreads.book.registration:body", src: "org.passingreads.book.registration:body", tgt: "org.passingreads.book.registration:body.did", kind: "prop", name: Some("did") }
- Breaking: RequiredEdgeRemoved { vertex_id: "org.passingreads.book.registration:body", src: "org.passingreads.book.registration:body", tgt: "org.passingreads.book.registration:body.bookSig", kind: "prop", name: Some("bookSig") }
- Non-breaking: AddedEdge { src: "org.passingreads.book.registration:body.signatures", tgt: "org.passingreads.book.registration:body.signatures:items", kind: "items", name: None }
- Non-breaking: AddedEdge { src: "org.passingreads.book.registration:body.signatures:items", tgt: "org.passingreads.signature.book#main", kind: "ref", name: None }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
5
"description": "A book that has been registered on PassingReads",
6
6
"key": "any",
7
7
"record": {
8
8
"properties": {
9
9
"aspectRatio": {
10
10
"description": "Aspect ratio of the cover image",
11
11
"ref": "org.passingreads.defs#aspectRatio",
12
12
"type": "ref"
13
13
},
14
14
"authors": {
15
15
"description": "Authors of this book, in order of credit. An empty array implies a book of anonymous or unknown authorship.",
16
16
"items": {
17
17
"maxLength": 512,
18
18
"minLength": 1,
19
19
"type": "string"
20
20
},
21
21
"type": "array"
22
22
},
23
23
"bookId": {
24
24
"description": "The book's ID (as defined on its QR Code)",
25
25
"type": "string"
26
26
},
27
-
"bookPub": {
28
-
"description": "The MultiFormat public key of the book.",
29
-
"type": "bytes"
30
-
},
31
-
"bookSig": {
32
-
"description": "The MultiFormat signature of this record, without this attribute, as created by the private key associated with the book.",
33
-
"type": "bytes"
34
-
},
35
27
"cover": {
36
28
"accept": [
37
29
"image/png",
38
30
"image/jpeg"
39
31
],
40
32
"description": "Cover image of the book",
41
33
"maxSize": 1000000,
42
34
"type": "blob"
43
-
},
44
-
"did": {
45
-
"description": "The DID of the person who registered the book. Included here, so it's verifiable with the bookSig.",
46
-
"format": "did",
47
-
"type": "string"
48
35
},
49
36
"occurredAt": {
50
37
"format": "datetime",
51
38
"type": "string"
52
39
},
53
40
"publicationId": {
54
41
"description": "The book's Open Library Edition ID",
55
42
"type": "string"
56
43
},
44
+
"signatures": {
45
+
"description": "Inline attestations binding this record to the book's keypair.",
46
+
"items": {
47
+
"ref": "org.passingreads.signature.book#main",
48
+
"type": "ref"
49
+
},
50
+
"minLength": 1,
51
+
"type": "array"
52
+
},
57
53
"title": {
58
54
"description": "The title of the book",
59
55
"maxLength": 512,
60
56
"minLength": 1,
61
57
"type": "string"
62
58
}
63
59
},
64
60
"required": [
65
-
"did",
66
61
"bookId",
67
62
"title",
68
63
"authors",
69
64
"publicationId",
70
-
"bookPub",
71
-
"bookSig",
65
+
"signatures",
72
66
"occurredAt"
73
67
],
74
68
"type": "object"
75
69
},
76
70
"type": "record"
77
71
}
78
72
},
79
73
"id": "org.passingreads.book.registration",
80
74
"lexicon": 1
81
75
}