{
"id": "blog.pckt.richtext.facet",
"defs": {
"id": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"description": "Facet feature for an identifier. Used for linking to a segment"
},
"bold": {
"type": "object",
"description": "Facet feature for bold text"
},
"code": {
"type": "object",
"description": "Facet feature for inline code"
},
"link": {
"type": "object",
"required": [
"uri"
],
"properties": {
"uri": {
"type": "string"
}
},
"description": "Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL."
},
"main": {
"type": "object",
"required": [
"index",
"features"
],
"properties": {
"index": {
"ref": "#byteSlice",
"type": "ref"
},
"features": {
"type": "array",
"items": {
"refs": [
"#link",
"#didMention",
"#atMention",
"#code",
"#highlight",
"#underline",
"#strikethrough",
"#id",
"#bold",
"#italic"
],
"type": "union"
}
}
}
},
"italic": {
"type": "object",
"description": "Facet feature for italic text"
},
"atMention": {
"type": "object",
"required": [
"atURI"
],
"properties": {
"atURI": {
"type": "string",
"format": "uri"
}
},
"description": "Facet feature for mentioning an AT URI"
},
"byteSlice": {
"type": "object",
"required": [
"byteStart",
"byteEnd"
],
"properties": {
"byteEnd": {
"type": "integer",
"minimum": 0
},
"byteStart": {
"type": "integer",
"minimum": 0
}
},
"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."
},
"highlight": {
"type": "object",
"description": "Facet feature for highlighted text"
},
"underline": {
"type": "object",
"description": "Facet feature for underline markup"
},
"didMention": {
"type": "object",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did"
}
},
"description": "Facet feature for mentioning a DID"
},
"strikethrough": {
"type": "object",
"description": "Facet feature for strikethrough markup"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"description": "Annotation of a sub-string within rich text."
}