{
  "type": "object",
  "title": "Book",
  "description": "Book model with nested author and metadata.",
  "version": "1.0.0",
  "properties": {
    "isbn": {
      "description": "International Standard Book Number",
      "title": "Isbn",
      "type": "string"
    },
    "title": {
      "description": "Book title",
      "maxLength": 200,
      "minLength": 1,
      "title": "Title",
      "type": "string"
    },
    "author": {
      "description": "Author information.",
      "properties": {
        "name": {
          "description": "Author's full name",
          "maxLength": 100,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Author's email address",
          "title": "Email"
        },
        "bio": {
          "anyOf": [
            {
              "maxLength": 500,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Author biography",
          "title": "Bio"
        }
      },
      "required": [
        "name"
      ],
      "title": "Author",
      "type": "object"
    },
    "description": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Book description",
      "title": "Description"
    },
    "price": {
      "description": "Book price in USD",
      "minimum": 0,
      "title": "Price",
      "type": "number"
    },
    "pages": {
      "description": "Number of pages",
      "exclusiveMinimum": 0,
      "title": "Pages",
      "type": "integer"
    },
    "published_date": {
      "description": "Publication date",
      "format": "date-time",
      "title": "Published Date",
      "type": "string"
    },
    "tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Book tags/categories",
      "title": "Tags"
    },
    "in_stock": {
      "default": true,
      "description": "Whether book is in stock",
      "title": "In Stock",
      "type": "boolean"
    }
  },
  "required": [
    "isbn",
    "title",
    "author",
    "price",
    "pages",
    "published_date"
  ]
}