# org.tangled.snippet.string

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

- Kind: record
- Record key: any
- Authority: snippet.tangled.org
- Lexicon: 1
- Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.snippet.string)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.snippet.string/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.snippet.string/analytics)

## Record (`org.tangled.snippet.string`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `description` (string)
  - Constraints: maxGraphemes: 256
- `snippet` (union, required)
  - One of: `#textFile`

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

Type: object

### Properties

- `content` (blob, required)
  - Constraints: maxLength: 1000000, accept: text/plain
- `name` (string, required): file name
  - Constraints: maxGraphemes: 140

## 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
}
```
