# pub.byline.comment

> Published by [bylinepub.bsky.social](https://lexicon.garden/identity/did:plc:ppjep63wzgs57unhrdcxqttm)

✓ This is the authoritative definition for this NSID.

## Links

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

## Definitions

### `pub.byline.comment`

**Type**: `record`

A reader or author comment on a pub.byline.book record. Written to the commenter's own repository on any AT Protocol PDS.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `book` | `ref` → `lex:com.atproto.repo.strongRef` | Yes | The book being discussed. |
| `text` | `string` | Yes |  |
| `parent` | `ref` → `lex:com.atproto.repo.strongRef` | No | Parent comment for threading; omit for a top-level comment. |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "pub.byline.comment",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "text",
          "book",
          "createdAt"
        ],
        "properties": {
          "book": {
            "ref": "lex:com.atproto.repo.strongRef",
            "type": "ref",
            "description": "The book being discussed."
          },
          "text": {
            "type": "string",
            "maxLength": 100000,
            "maxGraphemes": 10000
          },
          "parent": {
            "ref": "lex:com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Parent comment for threading; omit for a top-level comment."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "A reader or author comment on a pub.byline.book record. Written to the commenter's own repository on any AT Protocol PDS."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
