{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/owlsinsight-com/json-schema/owlsinsight-com-history-coverage-response-schema.json",
  "title": "HistoryCoverageResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/owlsinsight-com-historical-data-api-openapi.yml#/components/schemas/HistoryCoverageResponse",
  "properties": {
    "data": {
      "properties": {
        "datasets": {
          "additionalProperties": {
            "$ref": "#/$defs/HistoryCoverageDataset"
          },
          "description": "Keyed by dataset, currently `games` and `playerProps`.",
          "type": "object"
        },
        "generatedAt": {
          "type": "string"
        },
        "notes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object",
      "x-owls-required": [
        "datasets",
        "notes",
        "generatedAt"
      ]
    },
    "meta": {
      "properties": {
        "cacheTtlSeconds": {
          "format": "double",
          "type": "number"
        },
        "cached": {
          "type": "boolean"
        }
      },
      "type": "object",
      "x-owls-required": [
        "cached",
        "cacheTtlSeconds"
      ]
    },
    "success": {
      "type": "boolean"
    }
  },
  "type": "object",
  "x-owls-required": [
    "success",
    "data",
    "meta"
  ],
  "$defs": {
    "HistoryCoverageDataset": {
      "properties": {
        "description": {
          "type": "string"
        },
        "sports": {
          "additionalProperties": {
            "$ref": "#/$defs/HistoryCoverageRange"
          },
          "description": "Keyed by sport. A sport that is absent usually has no rows in this dataset,\nwhich is a distinct case from an empty range, but it is also absent when its\nlookup failed; such a partial answer is not cached, so ask again later before\nconcluding a sport is not covered.",
          "type": "object"
        }
      },
      "type": "object",
      "x-owls-required": [
        "description",
        "sports"
      ]
    },
    "HistoryCoverageRange": {
      "description": "First and last date actually held for one sport in one historical dataset.",
      "properties": {
        "earliest": {
          "type": "string"
        },
        "latest": {
          "type": "string"
        }
      },
      "type": "object",
      "x-owls-required": [
        "earliest",
        "latest"
      ]
    }
  }
}