page.corvus.facets

A facet

Repository @corvus.page did:plc:3qc4cbzcriye72qqqodeda26 namespace authority
Details · object
Kindobject
Authoritycorvus.page
Indexed
cid bafyreickt4pueawyqq6r4dmtwlf3io7cqnge4oypzqgzktwvvwdsjutuwu

Checks

Valid
  • unlimited-string defs.highlight.properties.colorNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.index.properties.atomEndNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.index.properties.atomStartNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "bold": {
      "description": "A bold facet",
      "properties": {},
      "type": "object"
    },
    "dateTime": {
      "description": "A date/time facet",
      "properties": {
        "dateOnly": {
          "default": false,
          "description": "True if the time component should be ignored - defaults to false",
          "type": "boolean"
        },
        "value": {
          "description": "The date/time value",
          "format": "datetime",
          "type": "string"
        }
      },
      "type": "object"
    },
    "highlight": {
      "description": "A highlight facet",
      "properties": {
        "color": {
          "description": "The color of the highlight",
          "type": "string"
        }
      },
      "type": "object"
    },
    "index": {
      "description": "An atom range of a facet",
      "properties": {
        "atomEnd": {
          "description": "The end atom id of the facet (inclusive) - formatted as `operationId.atomIdx`",
          "type": "string"
        },
        "atomStart": {
          "description": "The start atom id of the facet (inclusive) - formatted as `operationId.atomIdx`",
          "type": "string"
        }
      },
      "required": [
        "atomStart",
        "atomEnd"
      ],
      "type": "object"
    },
    "italic": {
      "description": "An italic facet",
      "properties": {},
      "type": "object"
    },
    "link": {
      "description": "A link facet",
      "properties": {
        "url": {
          "description": "The URL of the linked resource",
          "format": "uri",
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "A facet",
      "properties": {
        "features": {
          "description": "The features applied to the facet",
          "items": {
            "closed": false,
            "refs": [
              "#bold",
              "#italic",
              "#underline",
              "#strikethrough",
              "#link",
              "#highlight"
            ],
            "type": "union"
          },
          "type": "array"
        },
        "index": {
          "description": "The atom range this facet covers",
          "ref": "#index",
          "type": "ref"
        }
      },
      "required": [
        "index"
      ],
      "type": "object"
    },
    "mention": {
      "description": "A mention facet",
      "properties": {
        "did": {
          "description": "The did of the mentioned user",
          "format": "did",
          "type": "string"
        }
      },
      "type": "object"
    },
    "strikethrough": {
      "description": "A strikethrough facet",
      "properties": {},
      "type": "object"
    },
    "underline": {
      "description": "An underline facet",
      "properties": {},
      "type": "object"
    }
  },
  "description": "A facet, facets are features that apply to a range of text, they're immutable. So changing a facet requires dropping the old facet and inserting a new one.",
  "id": "page.corvus.facets",
  "lexicon": 1
}