{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mostrecommendedbooks-com/json-schema/mostrecommendedbooks-com-summary-response-schema.json",
  "title": "SummaryResponse",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mostrecommendedbooks-com-openapi.yaml#/components/schemas/SummaryResponse",
  "allOf": [
    {
      "$ref": "#/$defs/Attribution"
    },
    {
      "type": "object",
      "properties": {
        "book": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string"
            },
            "author": {
              "type": [
                "string",
                "null"
              ]
            },
            "year": {
              "type": [
                "integer",
                "null"
              ]
            },
            "buyUrl": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            }
          }
        },
        "summary": {
          "type": "string"
        },
        "chaptersCount": {
          "type": "integer"
        },
        "chapters": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "content": {
                "type": "string",
                "description": "Present only when full=true."
              }
            }
          }
        },
        "recommendedBy": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  ],
  "$defs": {
    "Attribution": {
      "type": "object",
      "description": "Every payload carries these two fields — cite them.",
      "required": [
        "source",
        "url"
      ],
      "properties": {
        "source": {
          "type": "string",
          "const": "mostrecommendedbooks.com"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Canonical MRB page for this data; cite it inline."
        }
      }
    }
  }
}