# garden.lexicon.dazzling-boarfish.rating.rate

> Published by [tynanpurdy.com](https://lexicon.garden/identity/did:plc:6ayddqghxhciedbaofoxkcbs)

✓ This is the authoritative definition for this NSID.

## Description

A rating of a subject against a canonical scale and prompt.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:6ayddqghxhciedbaofoxkcbs/garden.lexicon.dazzling-boarfish.rating.rate)
- [Documentation](https://lexicon.garden/lexicon/did:plc:6ayddqghxhciedbaofoxkcbs/garden.lexicon.dazzling-boarfish.rating.rate/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:6ayddqghxhciedbaofoxkcbs/garden.lexicon.dazzling-boarfish.rating.rate/examples)

## Definitions

### `garden.lexicon.dazzling-boarfish.rating.rate`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | No |  |
| `prompt` | `ref` → `com.atproto.repo.strongRef` | Yes | Pointer to a community.lexicon.rating.prompt record. |
| `scale` | `ref` → `com.atproto.repo.strongRef` | Yes | Pointer to a canonical community.lexicon.rating.scale record. |
| `subject` | `union` | Yes | The thing being rated: either an ATProto record (via strongRef) or an external URI (website, document, etc). |
| `value` | `union` | Yes | The chosen value, typed to match the referenced scale's code. |

### `garden.lexicon.dazzling-boarfish.rating.rate#subjectUri`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (uri) | Yes | A URI pointing to an external resource (website, document, etc). |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "prompt": {
            "description": "Pointer to a community.lexicon.rating.prompt record.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "scale": {
            "description": "Pointer to a canonical community.lexicon.rating.scale record.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "subject": {
            "description": "The thing being rated: either an ATProto record (via strongRef) or an external URI (website, document, etc).",
            "refs": [
              "com.atproto.repo.strongRef",
              "#subjectUri"
            ],
            "type": "union"
          },
          "value": {
            "description": "The chosen value, typed to match the referenced scale's code.",
            "refs": [
              "garden.lexicon.dazzling-boarfish.rating.scale#nominalValue",
              "garden.lexicon.dazzling-boarfish.rating.scale#ordinalValue",
              "garden.lexicon.dazzling-boarfish.rating.scale#intervalValue",
              "garden.lexicon.dazzling-boarfish.rating.scale#ratioValue"
            ],
            "type": "union"
          }
        },
        "required": [
          "subject",
          "scale",
          "prompt",
          "value"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "subjectUri": {
      "properties": {
        "uri": {
          "description": "A URI pointing to an external resource (website, document, etc).",
          "format": "uri",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    }
  },
  "description": "A rating of a subject against a canonical scale and prompt.",
  "id": "garden.lexicon.dazzling-boarfish.rating.rate",
  "lexicon": 1
}
```
