# work.lexical.review

> Published by [lexical.work](https://lexicon.garden/identity/did:plc:6acm263n23glqje6xrd2mgbt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:6acm263n23glqje6xrd2mgbt/work.lexical.review)
- [Documentation](https://lexicon.garden/lexicon/did:plc:6acm263n23glqje6xrd2mgbt/work.lexical.review/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:6acm263n23glqje6xrd2mgbt/work.lexical.review/examples)

## Definitions

### `work.lexical.review`

**Type**: `record`

A record representing a review of a work.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `text` | `string` | Yes | The review text. |
| `work` | `string` (at-uri) | Yes | AT URI of the work being reviewed. |
| `action` | `string` (at-uri) | No | AT URI of the action this review is tied to. |
| `facets` | `array` | No |  |
| `rating` | `string` (at-uri) | No | AT URI of a rating associated with this review. |

## Raw Schema

```json
{
  "id": "work.lexical.review",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "work",
          "text"
        ],
        "properties": {
          "text": {
            "type": "string",
            "required": true,
            "maxLength": 10240,
            "description": "The review text.",
            "maxGraphemes": 20480
          },
          "work": {
            "type": "string",
            "format": "at-uri",
            "required": true,
            "maxLength": 2048,
            "description": "AT URI of the work being reviewed."
          },
          "action": {
            "type": "string",
            "format": "at-uri",
            "maxLength": 2048,
            "description": "AT URI of the action this review is tied to."
          },
          "facets": {
            "type": "array",
            "items": {
              "ref": "social.lexical.richtext.facet",
              "type": "ref",
              "nullable": false
            },
            "nullable": false,
            "required": false
          },
          "rating": {
            "type": "string",
            "format": "at-uri",
            "maxLength": 2048,
            "description": "AT URI of a rating associated with this review."
          }
        }
      },
      "description": "A record representing a review of a work."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
