# xyz.opnshelf.review

> Published by [opnshelf.xyz](https://lexicon.garden/identity/did:plc:jkf4momksftvstbyqnb5sxik)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:jkf4momksftvstbyqnb5sxik/xyz.opnshelf.review)
- [Documentation](https://lexicon.garden/lexicon/did:plc:jkf4momksftvstbyqnb5sxik/xyz.opnshelf.review/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:jkf4momksftvstbyqnb5sxik/xyz.opnshelf.review/examples)

## Definitions

### `xyz.opnshelf.review`

**Type**: `record`

A user's long-form textual review of a media item. Carries no numeric score (that is a separate xyz.opnshelf.rating). Zero-or-many per media item per user.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `title` | `string` | Yes | Review title |
| `content` | `string` | Yes | Review body as markdown source |
| `mediaId` | `string` | Yes | TMDB movie ID or show ID |
| `spoiler` | `boolean` | No | True when the body contains spoilers for the reviewed media item. The title is outside the spoiler boundary and must remain spoiler-free. |
| `createdAt` | `string` (datetime) | Yes | Record creation timestamp |
| `mediaType` | `string` | Yes | Media type |
| `updatedAt` | `string` (datetime) | No | Last edit timestamp |
| `seasonNumber` | `integer` | No | Season number for season/episode items |
| `episodeNumber` | `integer` | No | Episode number for episode items |

## Raw Schema

```json
{
  "id": "xyz.opnshelf.review",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "mediaType",
          "mediaId",
          "title",
          "content",
          "createdAt"
        ],
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 3000,
            "description": "Review title",
            "maxGraphemes": 300
          },
          "content": {
            "type": "string",
            "maxLength": 100000,
            "description": "Review body as markdown source",
            "maxGraphemes": 20000
          },
          "mediaId": {
            "type": "string",
            "description": "TMDB movie ID or show ID"
          },
          "spoiler": {
            "type": "boolean",
            "description": "True when the body contains spoilers for the reviewed media item. The title is outside the spoiler boundary and must remain spoiler-free."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Record creation timestamp"
          },
          "mediaType": {
            "enum": [
              "movie",
              "show",
              "season",
              "episode"
            ],
            "type": "string",
            "description": "Media type"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "Last edit timestamp"
          },
          "seasonNumber": {
            "type": "integer",
            "description": "Season number for season/episode items"
          },
          "episodeNumber": {
            "type": "integer",
            "description": "Episode number for episode items"
          }
        }
      },
      "description": "A user's long-form textual review of a media item. Carries no numeric score (that is a separate xyz.opnshelf.rating). Zero-or-many per media item per user."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
