{
  "lexicon": 1,
  "id": "bond.biblio.book",
  "revision": 1,
  "description": "A minimal book record for reading attestation. For rich metadata (ratings, reviews, covers), see buzz.bookhive.book.",
  "defs": {
    "main": {
      "type": "record",
      "key": "tid",
      "description": "A book in the user's library",
      "record": {
        "type": "object",
        "required": ["title", "authors", "createdAt"],
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 500,
            "maxGraphemes": 200,
            "description": "The book's title"
          },
          "authors": {
            "type": "string",
            "maxLength": 2048,
            "description": "Author name(s). For multiple authors, use tab-separation for cross-lexicon compatibility with buzz.bookhive.book"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this record was created"
          },
          "lists": {
            "type": "array",
            "description": "AT-URIs of reading lists this book is applied to",
            "items": {
              "type": "string",
              "format": "at-uri"
            }
          }
        }
      }
    }
  }
}
