{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mostrecommendedbooks-com/json-schema/mostrecommendedbooks-com-list-response-schema.json",
  "title": "ListResponse",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mostrecommendedbooks-com-openapi.yaml#/components/schemas/ListResponse",
  "allOf": [
    {
      "$ref": "#/$defs/Attribution"
    },
    {
      "type": "object",
      "properties": {
        "list": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "description": {
              "type": "string",
              "description": "One-sentence summary. Only on lists the editors have rewritten."
            },
            "intro": {
              "type": "string",
              "description": "The editors' introduction (Markdown). Only on rewritten lists."
            },
            "howToChoose": {
              "type": "string",
              "description": "Which book to pick for which goal (Markdown). Only on rewritten lists."
            },
            "refreshedAt": {
              "type": "string",
              "format": "date-time",
              "description": "When the editors last refreshed the list."
            }
          }
        },
        "methodology": {
          "type": "string",
          "description": "How the consensus ranking is built."
        },
        "booksCount": {
          "type": "integer"
        },
        "books": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "rank": {
                "type": "integer"
              },
              "title": {
                "type": "string"
              },
              "author": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "year": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "recommendersCount": {
                "type": "integer"
              },
              "sourcesCount": {
                "type": "integer",
                "description": "Independent expert sources that mention it."
              },
              "why": {
                "type": "string",
                "description": "Who the book is for. Only on rewritten lists."
              },
              "buyUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              }
            }
          }
        }
      }
    }
  ],
  "$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."
        }
      }
    }
  }
}