pics.2bit.feed.comment
Schema Diff
+9 -0
Compatibility Analysis
Backward Compatible
Backward compatible. 6 non-breaking changes.
Non-Breaking Changes (6)
- AddedVertex AddedVertex { vertex_id: "app.bsky.richtext.facet" }
- AddedVertex AddedVertex { vertex_id: "pics.2bit.feed.comment:body.facets" }
- AddedVertex AddedVertex { vertex_id: "pics.2bit.feed.comment:body.facets:items" }
- AddedEdge AddedEdge { src: "pics.2bit.feed.comment:body", tgt: "pics.2bit.feed.comment:body.facets", kind: "prop", name: Some("facets") }
- AddedEdge AddedEdge { src: "pics.2bit.feed.comment:body.facets", tgt: "pics.2bit.feed.comment:body.facets:items", kind: "items", name: None }
- AddedEdge AddedEdge { src: "pics.2bit.feed.comment:body.facets:items", tgt: "app.bsky.richtext.facet", kind: "ref", name: None }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "app.bsky.richtext.facet" }AddedVertex { vertex_id: "pics.2bit.feed.comment:body.facets" }AddedVertex { vertex_id: "pics.2bit.feed.comment:body.facets:items" }
Additional Notes
- Non-breaking: AddedEdge { src: "pics.2bit.feed.comment:body", tgt: "pics.2bit.feed.comment:body.facets", kind: "prop", name: Some("facets") }
- Non-breaking: AddedEdge { src: "pics.2bit.feed.comment:body.facets", tgt: "pics.2bit.feed.comment:body.facets:items", kind: "items", name: None }
- Non-breaking: AddedEdge { src: "pics.2bit.feed.comment:body.facets:items", tgt: "app.bsky.richtext.facet", kind: "ref", name: None }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
5
"description": "A comment on a 2bit.pics post record.",
6
6
"key": "tid",
7
7
"record": {
8
8
"properties": {
9
9
"createdAt": {
10
10
"format": "datetime",
11
11
"type": "string"
12
12
},
13
+
"facets": {
14
+
"description": "Annotations of `text`, in the same shape and under the same rules as pics.2bit.feed.photo's `facets`: byte offsets into the UTF-8 encoding of `text`, and a tag or mention the AppView acts on only when the text it covers really is that hashtag or handle. A mention notifies the account it names. A tag links, but a comment is never indexed under it - tag pages list photos. Absent on a comment with no rich text, and on every comment from before comments carried facets, which clients parse from `text` instead.",
15
+
"items": {
16
+
"ref": "app.bsky.richtext.facet",
17
+
"type": "ref"
18
+
},
19
+
"maxLength": 64,
20
+
"type": "array"
21
+
},
13
22
"subject": {
14
23
"description": "Strong ref to the post being commented on. Allowed target collections are enforced in the AppView.",
15
24
"ref": "com.atproto.repo.strongRef",
16
25
"type": "ref"
17
26
},
18
27
"text": {
19
28
"maxGraphemes": 300,
20
29
"maxLength": 1200,
21
30
"minLength": 1,
22
31
"type": "string"
23
32
}
24
33
},
25
34
"required": [
26
35
"subject",
27
36
"text",
28
37
"createdAt"
29
38
],
30
39
"type": "object"
31
40
},
32
41
"type": "record"
33
42
}
34
43
},
35
44
"id": "pics.2bit.feed.comment",
36
45
"lexicon": 1
37
46
}