{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-covid-data-schema.json",
  "title": "CovidData",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-covid-19-api-openapi.yml#/components/schemas/CovidData",
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "description": "Country name."
    },
    "region": {
      "type": "string",
      "description": "Administrative region (state or province) name, if applicable."
    },
    "cases": {
      "type": "object",
      "description": "Object with dates as keys, each containing total (total cases/deaths) and new (new cases/deaths for that day).",
      "additionalProperties": {
        "$ref": "#/$defs/CaseData"
      }
    }
  },
  "$defs": {
    "CaseData": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "description": "Total cases/deaths."
        },
        "new": {
          "type": "integer",
          "description": "New cases/deaths for that day."
        }
      }
    }
  }
}