{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List every dropped book copy that shares a publicationId. Unlike searchBooks this does not de-duplicate — the publication detail page wants every individual copy so the user can see exactly how many are out there and where.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "books": {
              "items": {
                "ref": "org.passingreads.book.defs#statefulBook",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "books"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "publicationId": {
            "description": "The OpenLibrary Edition ID shared by all copies of this publication.",
            "type": "string"
          }
        },
        "required": [
          "publicationId"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "org.passingreads.book.getPublicationBooks",
  "lexicon": 1
}
