ing.opn.richtext.facet
Formatting over part of a text, as Bluesky's facets do: a byte range and what applies to it.
Details · object
| Kind | object |
|---|---|
| Authority | richtext.opn.ing |
| Commit rev | 3n2ukfgu3aw2l |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"bold": {
"description": "Bold text.",
"properties": {},
"type": "object"
},
"byteSlice": {
"description": "A range of the text by UTF-8 byte offset: the start inclusive, the end exclusive.",
"properties": {
"byteEnd": {
"minimum": 0,
"type": "integer"
},
"byteStart": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"byteStart",
"byteEnd"
],
"type": "object"
},
"italic": {
"description": "Italic text.",
"properties": {},
"type": "object"
},
"link": {
"description": "A link.",
"properties": {
"uri": {
"format": "uri",
"type": "string"
}
},
"required": [
"uri"
],
"type": "object"
},
"main": {
"description": "Formatting over part of a text, as Bluesky's facets do: a byte range and what applies to it.",
"properties": {
"features": {
"items": {
"refs": [
"#bold",
"#italic",
"#link",
"#mention"
],
"type": "union"
},
"type": "array"
},
"index": {
"ref": "#byteSlice",
"type": "ref"
}
},
"required": [
"index",
"features"
],
"type": "object"
},
"mention": {
"description": "A mention of an account, by its DID.",
"properties": {
"did": {
"format": "did",
"type": "string"
}
},
"required": [
"did"
],
"type": "object"
}
},
"id": "ing.opn.richtext.facet",
"lexicon": 1
}