{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get books at a specific H3 location.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "books": {
              "items": {
                "ref": "org.passingreads.book.defs#statefulBook",
                "type": "ref"
              },
              "type": "array"
            },
            "locationName": {
              "description": "Human-readable name of the requested location",
              "type": "string"
            }
          },
          "required": [
            "books"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "h3": {
            "description": "H3 cell index",
            "type": "string"
          }
        },
        "required": [
          "h3"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "org.passingreads.book.getLocationBooks",
  "lexicon": 1
}
