ing.opn.richtext.facet

Formatting over part of a text, as Bluesky's facets do: a byte range and what applies to it.

Repository @opn.ing did:plc:fd7yovynbzbli5i7m6tu76cl namespace authority
Details · object
Kindobject
Authorityrichtext.opn.ing
Commit rev3n2ukfgu3aw2l
Indexed
cid bafyreidae7dtqbugsg2xhm5otouditegdvehptflcqlvpn7z53wpq2klfy

Checks

Valid Lint pass
JSONDownload
{
  "$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
}