# org.tangled.snippet.string

> Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.snippet.string)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.snippet.string/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.snippet.string/examples)

## Definitions

### `org.tangled.snippet.string`

**Type**: `record`

TID is preferred for record-key, but not enforced.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `description` | `string` | No |  |
| `snippet` | `union` | Yes |  |

### `org.tangled.snippet.string#textFile`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `content` | `blob` | Yes |  |
| `name` | `string` | Yes | file name |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "TID is preferred for record-key, but not enforced.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxGraphemes": 256,
            "type": "string"
          },
          "snippet": {
            "refs": [
              "#textFile"
            ],
            "type": "union"
          }
        },
        "required": [
          "snippet",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "textFile": {
      "properties": {
        "content": {
          "accept": [
            "text/plain"
          ],
          "maxLength": 1000000,
          "type": "blob"
        },
        "name": {
          "description": "file name",
          "maxGraphemes": 140,
          "type": "string"
        }
      },
      "required": [
        "name",
        "content"
      ],
      "type": "object"
    }
  },
  "id": "org.tangled.snippet.string",
  "lexicon": 1
}
```
