# at.locale.comment

> Published by [locale.at](https://lexicon.garden/identity/did:plc:uwynodlfvaieqcisgh5zvdwx)

✓ This is the authoritative definition for this NSID.

## Description

Threaded discussion on a key, a translation, or a locale. Author-owned.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uwynodlfvaieqcisgh5zvdwx/at.locale.comment)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uwynodlfvaieqcisgh5zvdwx/at.locale.comment/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uwynodlfvaieqcisgh5zvdwx/at.locale.comment/examples)

## Definitions

### `at.locale.comment`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `body` | `string` | Yes |  |
| `parent` | `string` (at-uri) | No | Parent comment, for threading. |
| `project` | `string` (at-uri) | Yes |  |
| `subject` | `union` | Yes | What the comment is about: a record (e.g. a translation), a source string key, or a (key, locale) pair. |
| `createdAt` | `string` (datetime) | Yes |  |

### `at.locale.comment#recordSubject`

**Type**: `object`

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

### `at.locale.comment#stringSubject`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `key` | `string` | Yes |  |

### `at.locale.comment#keyLocaleSubject`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `key` | `string` | Yes |  |
| `locale` | `string` | Yes |  |

## Raw Schema

```json
{
  "id": "at.locale.comment",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "project",
          "subject",
          "body",
          "createdAt"
        ],
        "properties": {
          "body": {
            "type": "string",
            "maxLength": 30000,
            "minLength": 1,
            "maxGraphemes": 10000
          },
          "parent": {
            "type": "string",
            "format": "at-uri",
            "description": "Parent comment, for threading."
          },
          "project": {
            "type": "string",
            "format": "at-uri"
          },
          "subject": {
            "refs": [
              "#recordSubject",
              "#stringSubject",
              "#keyLocaleSubject"
            ],
            "type": "union",
            "description": "What the comment is about: a record (e.g. a translation), a source string key, or a (key, locale) pair."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      }
    },
    "recordSubject": {
      "type": "object",
      "required": [
        "uri"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri"
        }
      }
    },
    "stringSubject": {
      "type": "object",
      "required": [
        "key"
      ],
      "properties": {
        "key": {
          "type": "string",
          "maxLength": 4096
        }
      }
    },
    "keyLocaleSubject": {
      "type": "object",
      "required": [
        "key",
        "locale"
      ],
      "properties": {
        "key": {
          "type": "string",
          "maxLength": 4096
        },
        "locale": {
          "type": "string",
          "maxLength": 35
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Threaded discussion on a key, a translation, or a locale. Author-owned."
}
```
