{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deadends-dev/json-schema/deadends-dev-country-aggregate-schema.json",
  "title": "CountryAggregate",
  "description": "All country-scoped dead ends for a single country in one document.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deadends-dev-openapi.json#/components/schemas/CountryAggregate",
  "type": "object",
  "properties": {
    "country": {
      "type": "string"
    },
    "country_name": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "page_url": {
      "type": "string",
      "format": "uri"
    },
    "last_updated": {
      "type": "string"
    },
    "total_entries": {
      "type": "integer"
    },
    "domains": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "api_url": {
            "type": "string",
            "format": "uri"
          },
          "domain": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "signature": {
            "type": "string"
          },
          "regex": {
            "type": "string"
          },
          "audience": {
            "type": "string"
          },
          "jurisdiction_level": {
            "type": "string",
            "enum": [
              "national",
              "regional",
              "city"
            ]
          },
          "verdict": {
            "type": "object"
          },
          "dead_end_count": {
            "type": "integer"
          },
          "workaround_count": {
            "type": "integer"
          }
        }
      }
    }
  }
}