{
  "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "$schema": { "type": "string" },
    "data": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "propertyNames": { "type": "string", "pattern": "^[A-Z]{2}$" },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The display name of the country"
          },
          "areaId": {
            "type": "string",
            "enum": [
              "north-america",
              "latin-america-caribbean",
              "sub-saharan-africa",
              "middle-east-north-africa",
              "western-asia",
              "western-europe",
              "eastern-europe",
              "southern-asia",
              "central-asia",
              "eastern-asia",
              "southeast-asia",
              "oceania"
            ],
            "description": "The geographical area identifier"
          },
          "boundingBox": {
            "type": "object",
            "properties": {
              "ne": {
                "type": "object",
                "properties": {
                  "lat": {
                    "type": "number",
                    "minimum": -90,
                    "maximum": 90,
                    "description": "Northeast latitude coordinate"
                  },
                  "lon": {
                    "type": "number",
                    "minimum": -180,
                    "maximum": 180,
                    "description": "Northeast longitude coordinate"
                  }
                },
                "required": ["lat", "lon"],
                "additionalProperties": false
              },
              "sw": {
                "type": "object",
                "properties": {
                  "lat": {
                    "type": "number",
                    "minimum": -90,
                    "maximum": 90,
                    "description": "Southwest latitude coordinate"
                  },
                  "lon": {
                    "type": "number",
                    "minimum": -180,
                    "maximum": 180,
                    "description": "Southwest longitude coordinate"
                  }
                },
                "required": ["lat", "lon"],
                "additionalProperties": false
              }
            },
            "required": ["ne", "sw"],
            "additionalProperties": false,
            "description": "Bounding box coordinates for the country"
          }
        },
        "required": ["name", "areaId", "boundingBox"],
        "additionalProperties": false
      },
      "description": "A mapping of country codes to country information including name, area, and bounding box coordinates"
    }
  },
  "required": ["$schema", "data"]
}
