# pub.oysters.comment

> Published by [oysters.pub](https://lexicon.garden/identity/did:plc:gsvuczfwpmrqpap45iz23j43)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:gsvuczfwpmrqpap45iz23j43/pub.oysters.comment)
- [Documentation](https://lexicon.garden/lexicon/did:plc:gsvuczfwpmrqpap45iz23j43/pub.oysters.comment/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:gsvuczfwpmrqpap45iz23j43/pub.oysters.comment/examples)

## Definitions

### `pub.oysters.comment`

**Type**: `record`

A comment in a post's discussion, or a reply to another comment.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `text` | `string` | Yes | The comment body, in plain text. |
| `parent` | `ref` → `com.atproto.repo.strongRef` | No | The comment being replied to. Absent on a top-level comment. |
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | The post this comment belongs to — the thread root. Carried on every comment, including replies, so a consumer can attach a comment to its thread without walking the parent chain. |
| `createdAt` | `string` (datetime) | Yes | When the author wrote the comment. |

## Raw Schema

```json
{
  "id": "pub.oysters.comment",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "text",
          "subject",
          "createdAt"
        ],
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 40000,
            "minLength": 1,
            "description": "The comment body, in plain text.",
            "maxGraphemes": 10000
          },
          "parent": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "The comment being replied to. Absent on a top-level comment."
          },
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "The post this comment belongs to — the thread root. Carried on every comment, including replies, so a consumer can attach a comment to its thread without walking the parent chain."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the author wrote the comment."
          }
        }
      },
      "description": "A comment in a post's discussion, or a reply to another comment."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
