app.offprint.richtext.facet

offprint.app

{
  "id": "app.offprint.richtext.facet",
  "defs": {
    "bold": {
      "type": "object",
      "properties": []
    },
    "code": {
      "type": "object",
      "properties": []
    },
    "link": {
      "type": "object",
      "required": [
        "uri"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "uri",
          "required": true
        }
      }
    },
    "main": {
      "type": "object",
      "required": [
        "index",
        "features"
      ],
      "properties": {
        "index": {
          "ref": "#byteSlice",
          "type": "ref",
          "required": true
        },
        "features": {
          "type": "array",
          "items": {
            "refs": [
              "#bold",
              "#italic",
              "#underline",
              "#strikethrough",
              "#code",
              "#highlight",
              "#link",
              "#mention"
            ],
            "type": "union"
          },
          "required": true
        }
      }
    },
    "italic": {
      "type": "object",
      "properties": []
    },
    "mention": {
      "type": "object",
      "required": [
        "did"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did",
          "required": true
        },
        "handle": {
          "type": "string",
          "format": "handle",
          "description": "Optional cached handle for display"
        }
      }
    },
    "byteSlice": {
      "type": "object",
      "required": [
        "byteStart",
        "byteEnd"
      ],
      "properties": {
        "byteEnd": {
          "type": "integer",
          "minimum": 0,
          "required": true,
          "description": "End index (exclusive), zero-indexed byte offset in UTF-8 encoded text."
        },
        "byteStart": {
          "type": "integer",
          "minimum": 0,
          "required": true,
          "description": "Start index (inclusive), zero-indexed byte offset in UTF-8 encoded text."
        }
      }
    },
    "highlight": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Optional highlight color (hex or CSS color)"
        }
      }
    },
    "underline": {
      "type": "object",
      "properties": []
    },
    "strikethrough": {
      "type": "object",
      "properties": []
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}

Validate Record

Validate a record against app.offprint.richtext.facet

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:pgjkomf37an4czloay5zeth6
CID
bafyreihgooxrualvhzxvus7uwr4dnlpdq56m5cd3tqvyu3tvjzeasfuel4
Indexed At
2026-01-16 04:01 UTC
AT-URI
at://did:plc:pgjkomf37an4czloay5zeth6/com.atproto.lexicon.schema/app.offprint.richtext.facet

Version History (2 versions)

Lexicon Garden

@