# app.citylore.rating

> A walker's rating of a tour or of one of its stops. Public, in the walker's own repo.

- Kind: record
- Record key: tid
- Authority: citylore.app
- Lexicon: 1
- Published by [citylore.app](https://lexicon.garden/identity/did:plc:yyhpdzesw2vzyuptd54i26dj), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yyhpdzesw2vzyuptd54i26dj/app.citylore.rating)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yyhpdzesw2vzyuptd54i26dj/app.citylore.rating/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yyhpdzesw2vzyuptd54i26dj/app.citylore.rating/analytics)

## Record (`app.citylore.rating`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `langs` (array)
  - Constraints: maxLength: 3
  - `items` (string · language)
- `stars` (integer, required)
  - Constraints: minimum: 1, maximum: 5
- `stopId` (string): Rates one stop (its id in the tour) instead of the whole tour.
  - Constraints: maxLength: 32
- `subject` (ref, required): The tour (or, for paid tours, its listing) at the version the walker walked.
  - Reference: `com.atproto.repo.strongRef`
- `text` (string)
  - Constraints: maxLength: 10000, maxGraphemes: 1000

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A walker's rating of a tour or of one of its stops. Public, in the walker's own repo.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "langs": {
            "items": {
              "format": "language",
              "type": "string"
            },
            "maxLength": 3,
            "type": "array"
          },
          "stars": {
            "maximum": 5,
            "minimum": 1,
            "type": "integer"
          },
          "stopId": {
            "description": "Rates one stop (its id in the tour) instead of the whole tour.",
            "maxLength": 32,
            "type": "string"
          },
          "subject": {
            "description": "The tour (or, for paid tours, its listing) at the version the walker walked.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "text": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          }
        },
        "required": [
          "subject",
          "stars",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.citylore.rating",
  "lexicon": 1
}
```
