# social.lexical.richtext.facet

> Published by [lexical.social](https://lexicon.garden/identity/did:plc:k6xccphpraz5nylacjrdby3s)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:k6xccphpraz5nylacjrdby3s/social.lexical.richtext.facet)
- [Documentation](https://lexicon.garden/lexicon/did:plc:k6xccphpraz5nylacjrdby3s/social.lexical.richtext.facet/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:k6xccphpraz5nylacjrdby3s/social.lexical.richtext.facet/examples)

## Definitions

### `social.lexical.richtext.facet#bold`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

### `social.lexical.richtext.facet#link`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (uri) | Yes |  |

### `social.lexical.richtext.facet`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `index` | `ref` → `#byteSlice` | Yes |  |
| `features` | `array` | Yes |  |

### `social.lexical.richtext.facet#italic`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

### `social.lexical.richtext.facet#byteSlice`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `byteEnd` | `integer` | Yes |  |
| `byteStart` | `integer` | Yes |  |

### `social.lexical.richtext.facet#monospace`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

### `social.lexical.richtext.facet#underline`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

### `social.lexical.richtext.facet#strikethrough`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

## Raw Schema

```json
{
  "id": "social.lexical.richtext.facet",
  "defs": {
    "bold": {
      "type": "object",
      "properties": {}
    },
    "link": {
      "type": "object",
      "required": [
        "uri"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "uri",
          "nullable": false,
          "required": true
        }
      }
    },
    "main": {
      "type": "object",
      "required": [
        "index",
        "features"
      ],
      "properties": {
        "index": {
          "ref": "#byteSlice",
          "type": "ref",
          "nullable": false,
          "required": true
        },
        "features": {
          "type": "array",
          "items": {
            "refs": [
              "#link",
              "#bold",
              "#italic",
              "#strikethrough",
              "#underline",
              "#monospace"
            ],
            "type": "union",
            "closed": false,
            "nullable": false
          },
          "nullable": false,
          "required": true,
          "minLength": 1
        }
      }
    },
    "italic": {
      "type": "object",
      "properties": {}
    },
    "byteSlice": {
      "type": "object",
      "required": [
        "byteStart",
        "byteEnd"
      ],
      "properties": {
        "byteEnd": {
          "type": "integer",
          "minimum": 0,
          "nullable": false,
          "required": true
        },
        "byteStart": {
          "type": "integer",
          "minimum": 0,
          "nullable": false,
          "required": true
        }
      }
    },
    "monospace": {
      "type": "object",
      "properties": {}
    },
    "underline": {
      "type": "object",
      "properties": {}
    },
    "strikethrough": {
      "type": "object",
      "properties": {}
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
