social.colibri.channel
Schema Diff
+6 -1
Compatibility Analysis
Breaking Changes Detected
1 breaking change, 2 non-breaking changes.
Breaking Changes (1)
- ConstraintAdded ConstraintAdded { vertex_id: "social.colibri.channel:body.ownerOnly", sort: "default", value: "false" }
Non-Breaking Changes (2)
- AddedVertex AddedVertex { vertex_id: "social.colibri.channel:body.ownerOnly" }
- AddedEdge AddedEdge { src: "social.colibri.channel:body", tgt: "social.colibri.channel:body.ownerOnly", kind: "prop", name: Some("ownerOnly") }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "social.colibri.channel:body.ownerOnly" }
Constraint Changes
- ConstraintAdded ConstraintAdded { vertex_id: "social.colibri.channel:body.ownerOnly", sort: "default", value: "false" }
Additional Notes
- Non-breaking: AddedEdge { src: "social.colibri.channel:body", tgt: "social.colibri.channel:body.ownerOnly", kind: "prop", name: Some("ownerOnly") }
1
1
{
2
2
"id": "social.colibri.channel",
3
3
"defs": {
4
4
"main": {
5
5
"key": "tid",
6
6
"type": "record",
7
7
"record": {
8
8
"type": "object",
9
9
"required": [
10
10
"name",
11
11
"type",
12
12
"category",
13
13
"community"
14
14
],
15
15
"properties": {
16
16
"name": {
17
17
"type": "string",
18
18
"default": "New channel",
19
19
"maxLength": 32,
20
20
"minLength": 1,
21
21
"description": "The name of the channel."
22
22
},
23
23
"type": {
24
24
"enum": [
25
25
"text",
26
26
"voice",
27
27
"forum"
28
28
],
29
29
"type": "string",
30
30
"description": "The type of the channel."
31
31
},
32
32
"$type": {
33
33
"type": "string",
34
34
"format": "nsid",
35
35
"description": "The type of the record."
36
36
},
37
37
"category": {
38
38
"type": "string",
39
39
"format": "record-key",
40
40
"description": "The category this channel belongs to."
41
41
},
42
42
"community": {
43
43
"type": "string",
44
44
"format": "record-key",
45
45
"description": "The record key of the community this channel belongs to."
46
46
},
47
+
"ownerOnly": {
48
+
"type": "boolean",
49
+
"default": false,
50
+
"description": "Whether the owner of the community is the only one allowed to post in the channel or not."
51
+
},
47
52
"description": {
48
53
"type": "string",
49
54
"default": "",
50
55
"maxLength": 256,
51
56
"description": "A description of the channel."
52
57
}
53
58
}
54
59
},
55
60
"description": "A channel that belongs to a category on Colibri."
56
61
}
57
62
},
58
63
"$type": "com.atproto.lexicon.schema",
59
64
"lexicon": 1,
60
-
"revision": 1
65
+
"revision": 2
61
66
}