{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A hint for which publication this book is, so that registration is especiall.",
      "key": "any",
      "record": {
        "properties": {
          "bookId": {
            "description": "The book's ID (as defined on its QR Code)",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "publicationId": {
            "description": "The suggested Open Library Edition ID for this book",
            "type": "string"
          },
          "signatures": {
            "description": "Inline attestations binding this hint to the book's keypair, proving the hinter physically scanned the label.",
            "items": {
              "ref": "org.passingreads.signature.book#main",
              "type": "ref"
            },
            "minLength": 1,
            "type": "array"
          }
        },
        "required": [
          "bookId",
          "publicationId",
          "signatures",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.passingreads.book.registrationHint",
  "lexicon": 1
}
