# com.livtet.topBook

> A reader's ranked favourite books. At most four distinct editions, in rank order, each with the accent its profile tile is drawn with.

- Kind: record
- Record key: literal:self
- Authority: livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.topBook)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.topBook/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.topBook/analytics)

## Record (`com.livtet.topBook`)

Type: record · key literal:self

### Properties

- `books` (array, required): The ranked picks, first place first.
  - Constraints: maxLength: 4
  - `items` (ref)
    - Reference: `#topBook`
- `createdAt` (string · datetime, required)
- `updatedAt` (string · datetime)

## #topBook (`com.livtet.topBook#topBook`)

Type: object

### Properties

- `book` (string · at-uri, required): The ranked edition, as a community.lexicon.book.edition at-uri.
- `color` (string, required): The accent drawn around this pick's tile, as #rrggbb.
  - Constraints: minGraphemes: 7, maxGraphemes: 7

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A reader's ranked favourite books. At most four distinct editions, in rank order, each with the accent its profile tile is drawn with.",
      "key": "literal:self",
      "record": {
        "properties": {
          "books": {
            "description": "The ranked picks, first place first.",
            "items": {
              "ref": "#topBook",
              "type": "ref"
            },
            "maxLength": 4,
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "books",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "topBook": {
      "properties": {
        "book": {
          "description": "The ranked edition, as a community.lexicon.book.edition at-uri.",
          "format": "at-uri",
          "type": "string"
        },
        "color": {
          "description": "The accent drawn around this pick's tile, as #rrggbb.",
          "maxGraphemes": 7,
          "minGraphemes": 7,
          "type": "string"
        }
      },
      "required": [
        "book",
        "color"
      ],
      "type": "object"
    }
  },
  "id": "com.livtet.topBook",
  "lexicon": 1
}
```
