tech.tokimeki.forum.vote
Schema Diff
+4 -4
Compatibility Analysis
Breaking Changes Detected
2 breaking changes, 3 non-breaking changes.
Breaking Changes (2)
- KindChanged KindChanged { vertex_id: "tech.tokimeki.forum.vote:body.subject", old_kind: "string", new_kind: "ref" }
- ConstraintAdded ConstraintAdded { vertex_id: "tech.tokimeki.forum.vote:body.subject", sort: "ref", value: "com.atproto.repo.strongRef" }
Non-Breaking Changes (3)
- AddedVertex AddedVertex { vertex_id: "com.atproto.repo.strongRef" }
- AddedEdge AddedEdge { src: "tech.tokimeki.forum.vote:body.subject", tgt: "com.atproto.repo.strongRef", kind: "ref", name: None }
- ConstraintRemoved ConstraintRemoved { vertex_id: "tech.tokimeki.forum.vote:body.subject", sort: "format" }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "com.atproto.repo.strongRef" }
Constraint Changes
- ConstraintAdded ConstraintAdded { vertex_id: "tech.tokimeki.forum.vote:body.subject", sort: "ref", value: "com.atproto.repo.strongRef" }
- ConstraintRemoved ConstraintRemoved { vertex_id: "tech.tokimeki.forum.vote:body.subject", sort: "format" }
Additional Notes
- Breaking: KindChanged { vertex_id: "tech.tokimeki.forum.vote:body.subject", old_kind: "string", new_kind: "ref" }
- Non-breaking: AddedEdge { src: "tech.tokimeki.forum.vote:body.subject", tgt: "com.atproto.repo.strongRef", kind: "ref", name: None }
1
1
{
2
2
"id": "tech.tokimeki.forum.vote",
3
3
"defs": {
4
4
"main": {
5
5
"key": "any",
6
6
"type": "record",
7
7
"record": {
8
8
"type": "object",
9
9
"required": [
10
10
"subject",
11
11
"createdAt"
12
12
],
13
13
"properties": {
14
14
"subject": {
15
-
"type": "string",
16
-
"format": "at-uri",
17
-
"description": "Space record URI of the tech.tokimeki.forum.thread or tech.tokimeki.forum.message being voted on."
15
+
"ref": "com.atproto.repo.strongRef",
16
+
"type": "ref",
17
+
"description": "The tech.tokimeki.forum.thread or tech.tokimeki.forum.message being voted on. The cid records the version that was voted on."
18
18
},
19
19
"createdAt": {
20
20
"type": "string",
21
21
"format": "datetime"
22
22
}
23
23
}
24
24
},
25
-
"description": "An upvote on a thread or a message. Written into the voter's own repo within the space. The record's existence is the vote; delete it to withdraw. rkey is derived from the subject so one voter holds at most one vote per subject."
25
+
"description": "An upvote on a thread or a message. Written into the voter's own repo within the space. The record's existence is the vote; delete it to withdraw. rkey is derived from the subject URI ('v' + base32lower(sha256(uri))[0:26]) so one voter holds at most one vote per subject across edits of that subject."
26
26
}
27
27
},
28
28
"$type": "com.atproto.lexicon.schema",
29
29
"lexicon": 1
30
30
}