{
  "$schema": "[http://json-schema.org/draft-07/schema#](http://json-schema.org/draft-07/schema#)",
  "$id": "[http://example.com/bookstore.schema.json](http://example.com/bookstore.schema.json)",
  "title": "Bookstore",
  "description": "The schema for a simple bookstore catalog.",
  "type": "object",
  "properties": {
    "bookstore": {
      "type": "object",
      "properties": {
        "book": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "category": { "type": "string" },
              "title": { "type": "string" },
              "author": { "type": "string" },
              "year": { "type": "integer" },
              "price": { "type": "number" }
            },
            "required": ["category", "title", "author", "year", "price"]
          }
        }
      },
      "required": ["book"]
    }
  },
  "required": ["bookstore"]
}
