{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/e-vignettes-eu/json-schema/e-vignettes-eu-country-list-schema.json",
  "title": "CountryList",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/e-vignettes-eu-openapi.json#/components/schemas/CountryList",
  "type": "object",
  "required": [
    "object",
    "count",
    "data"
  ],
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "count": {
      "type": "integer"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CountrySummary"
      }
    }
  },
  "$defs": {
    "CountrySummary": {
      "type": "object",
      "required": [
        "code",
        "name",
        "iso_code",
        "operator",
        "summary",
        "page_url",
        "products_url",
        "last_reviewed"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2, lower case."
        },
        "name": {
          "type": "string",
          "description": "English country name."
        },
        "iso_code": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2, upper case."
        },
        "operator": {
          "$ref": "#/$defs/Operator"
        },
        "summary": {
          "type": "string",
          "description": "One paragraph on how the country's toll works."
        },
        "page_url": {
          "type": "string",
          "format": "uri",
          "description": "Human country guide."
        },
        "products_url": {
          "type": "string",
          "format": "uri",
          "description": "Products filtered to this country."
        },
        "last_reviewed": {
          "type": "string",
          "format": "date",
          "description": "ISO date the facts were last verified against the operator."
        }
      }
    },
    "Operator": {
      "type": "object",
      "description": "The national authority that issues the toll product.",
      "required": [
        "name",
        "system_name",
        "url"
      ],
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Official operator, e.g. \"ASFINAG\"."
        },
        "system_name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the toll system if it has one, e.g. \"HU-GO\"."
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Operator website."
        }
      }
    }
  }
}