{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tradedashboard-eu/json-schema/tradedashboard-eu-countries-response-schema.json",
  "title": "CountriesResponse",
  "description": "GET /api/reference/countries — country reference data for the sidebar\nselectors.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tradedashboard-eu-openapi.json#/components/schemas/CountriesResponse",
  "properties": {
    "reporters": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Reporters",
      "description": "Selectable reporters (EU Member States)."
    },
    "reporter_presets": {
      "items": {
        "$ref": "#/$defs/ReporterPreset"
      },
      "type": "array",
      "title": "Reporter Presets",
      "description": "The aggregate reporter presets (EU, euro area, candidates)."
    },
    "candidate_reporters": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Candidate Reporters",
      "description": "EU candidate countries, selectable as reporters."
    },
    "other_reporters": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Other Reporters",
      "description": "Other selectable reporters (Northern Ireland)."
    },
    "reporter_groups": {
      "additionalProperties": {
        "items": {
          "type": "string"
        },
        "type": "array"
      },
      "type": "object",
      "title": "Reporter Groups",
      "description": "Predefined reporter groups: {group name: [reporters]}."
    },
    "partner_presets": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Partner Presets",
      "description": "Named partner-set presets (e.g. 'non-EU countries')."
    },
    "partner_groups": {
      "additionalProperties": {
        "items": {
          "type": "string"
        },
        "type": "array"
      },
      "type": "object",
      "title": "Partner Groups",
      "description": "Predefined partner groups: {group name: [partners]}."
    },
    "all_partners": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "All Partners",
      "description": "Every selectable partner country."
    },
    "eu_countries": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Eu Countries",
      "description": "The EU Member States."
    },
    "translations": {
      "additionalProperties": {
        "additionalProperties": {
          "type": "string"
        },
        "type": "object"
      },
      "type": "object",
      "title": "Translations",
      "description": "{English name: {lang: translated name}} for every individual country."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "reporters",
    "reporter_presets",
    "candidate_reporters",
    "other_reporters",
    "reporter_groups",
    "partner_presets",
    "partner_groups",
    "all_partners",
    "eu_countries",
    "translations"
  ],
  "$defs": {
    "ReporterPreset": {
      "properties": {
        "key": {
          "type": "string",
          "title": "Key",
          "description": "The frontend's i18n key for the preset's label."
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "The English identifier submitted back as 'reporter'."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "key",
        "name"
      ],
      "title": "ReporterPreset",
      "description": "An aggregate reporter preset (rendered via its i18n ``key``; ``name``\nis the English identifier submitted back as ``reporter``)."
    }
  }
}