{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tppflow-com/json-schema/tppflow-com-transmuter-modules-warn-api-stats-response-schema.json",
  "title": "StatsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tppflow-com-warn-api-openapi.yml#/components/schemas/transmuter__modules__warn__api__StatsResponse",
  "properties": {
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "states": {
      "items": {
        "$ref": "#/$defs/StateCoverage"
      },
      "type": "array",
      "title": "States"
    }
  },
  "type": "object",
  "required": [
    "total",
    "states"
  ],
  "$defs": {
    "StateCoverage": {
      "properties": {
        "state": {
          "type": "string",
          "title": "State"
        },
        "notices": {
          "type": "integer",
          "title": "Notices"
        },
        "latest_effective_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Latest Effective Date"
        }
      },
      "type": "object",
      "required": [
        "state",
        "notices"
      ],
      "title": "StateCoverage"
    }
  }
}