{
"id": "app.atmobb.richtext.facet",
"defs": {
"tag": {
"type": "object",
"required": [
"tag"
],
"properties": {
"tag": {
"type": "string",
"maxLength": 640,
"maxGraphemes": 64
}
},
"description": "A hashtag."
},
"bold": {
"type": "object",
"properties": {},
"description": "Bold text."
},
"code": {
"type": "object",
"properties": {},
"description": "Inline code."
},
"link": {
"type": "object",
"required": [
"uri"
],
"properties": {
"uri": {
"type": "string",
"format": "uri"
}
},
"description": "A hyperlink."
},
"main": {
"type": "object",
"required": [
"index",
"features"
],
"properties": {
"index": {
"ref": "#byteSlice",
"type": "ref"
},
"features": {
"type": "array",
"items": {
"refs": [
"#bold",
"#italic",
"#underline",
"#strikethrough",
"#code",
"#spoiler",
"#link",
"#mention",
"#tag"
],
"type": "union"
}
}
},
"description": "Annotation of a sub-string within rich text."
},
"italic": {
"type": "object",
"properties": {},
"description": "Italic text."
},
"mention": {
"type": "object",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did"
}
},
"description": "A mention of another account."
},
"spoiler": {
"type": "object",
"properties": {},
"description": "Spoiler text, hidden until revealed. A forum culture essential."
},
"byteSlice": {
"type": "object",
"required": [
"byteStart",
"byteEnd"
],
"properties": {
"byteEnd": {
"type": "integer",
"minimum": 0
},
"byteStart": {
"type": "integer",
"minimum": 0
}
},
"description": "Sub-string range as byte offsets into the UTF-8 text."
},
"underline": {
"type": "object",
"properties": {},
"description": "Underlined text. A BBCode heritage feature."
},
"strikethrough": {
"type": "object",
"properties": {},
"description": "Struck-through text."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}