blog.pckt.richtext.facet
Schema Diff
+6 -0
Compatibility Analysis
Backward Compatible
No changes detected.
1
1
{
2
2
"id": "blog.pckt.richtext.facet",
3
3
"defs": {
4
4
"id": {
5
5
"type": "object",
6
6
"properties": {
7
7
"id": {
8
8
"type": "string"
9
9
}
10
10
},
11
11
"description": "Facet feature for an identifier. Used for linking to a segment"
12
12
},
13
13
"bold": {
14
14
"type": "object",
15
+
"properties": {},
15
16
"description": "Facet feature for bold text"
16
17
},
17
18
"code": {
18
19
"type": "object",
20
+
"properties": {},
19
21
"description": "Facet feature for inline code"
20
22
},
21
23
"link": {
22
24
"type": "object",
23
25
"required": [
24
26
"uri"
25
27
],
26
28
"properties": {
27
29
"uri": {
28
30
"type": "string"
29
31
}
30
32
},
31
33
"description": "Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL."
32
34
},
33
35
"main": {
34
36
"type": "object",
35
37
"required": [
36
38
"index",
37
39
"features"
38
40
],
39
41
"properties": {
40
42
"index": {
41
43
"ref": "#byteSlice",
42
44
"type": "ref"
43
45
},
44
46
"features": {
45
47
"type": "array",
46
48
"items": {
47
49
"refs": [
48
50
"#link",
49
51
"#didMention",
50
52
"#atMention",
51
53
"#code",
52
54
"#highlight",
53
55
"#underline",
54
56
"#strikethrough",
55
57
"#id",
56
58
"#bold",
57
59
"#italic"
58
60
],
59
61
"type": "union"
60
62
}
61
63
}
62
64
}
63
65
},
64
66
"italic": {
65
67
"type": "object",
68
+
"properties": {},
66
69
"description": "Facet feature for italic text"
67
70
},
68
71
"atMention": {
69
72
"type": "object",
70
73
"required": [
71
74
"atURI"
72
75
],
73
76
"properties": {
74
77
"atURI": {
75
78
"type": "string",
76
79
"format": "uri"
77
80
}
78
81
},
79
82
"description": "Facet feature for mentioning an AT URI"
80
83
},
81
84
"byteSlice": {
82
85
"type": "object",
83
86
"required": [
84
87
"byteStart",
85
88
"byteEnd"
86
89
],
87
90
"properties": {
88
91
"byteEnd": {
89
92
"type": "integer",
90
93
"minimum": 0
91
94
},
92
95
"byteStart": {
93
96
"type": "integer",
94
97
"minimum": 0
95
98
}
96
99
},
97
100
"description": "Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text."
98
101
},
99
102
"highlight": {
100
103
"type": "object",
104
+
"properties": {},
101
105
"description": "Facet feature for highlighted text"
102
106
},
103
107
"underline": {
104
108
"type": "object",
109
+
"properties": {},
105
110
"description": "Facet feature for underline markup"
106
111
},
107
112
"didMention": {
108
113
"type": "object",
109
114
"required": [
110
115
"did"
111
116
],
112
117
"properties": {
113
118
"did": {
114
119
"type": "string",
115
120
"format": "did"
116
121
}
117
122
},
118
123
"description": "Facet feature for mentioning a DID"
119
124
},
120
125
"strikethrough": {
121
126
"type": "object",
127
+
"properties": {},
122
128
"description": "Facet feature for strikethrough markup"
123
129
}
124
130
},
125
131
"$type": "com.atproto.lexicon.schema",
126
132
"lexicon": 1,
127
133
"description": "Annotation of a sub-string within rich text."
128
134
}