{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/engrate/json-schema/engrate-get-control-areas-response-schema.json",
  "title": "GetControlAreasResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/engrate-core-api-openapi.yml#/components/schemas/GetControlAreasResponse",
  "properties": {
    "control_areas": {
      "items": {
        "$ref": "#/$defs/ControlArea"
      },
      "title": "Control Areas",
      "type": "array"
    }
  },
  "required": [
    "control_areas"
  ],
  "type": "object",
  "$defs": {
    "ControlArea": {
      "description": "A Control Area is a core domain concept in the European energy market.\n\nThe [ENTSO-E Harmonized Electricity Market Role Model](https://www.entsoe.eu/data/cim/role-models/) defines a Control Area as:\n\n> A coherent part of the interconnected system, operated by a single System Operator and shall include connected physical loads and/or generation units if any.\n\nIn other words, it is the grid a single TSO operates. It is distinct from the Scheduling Area, which is the area sharing one imbalance price. One good example is Germany, where a single Scheduling Area (DE/LU) is divided into four Control Areas — 50Hertz, Amprion, TenneT DE and TransnetBW.",
      "properties": {
        "countries": {
          "description": "ISO 3166-1 alpha-2 country codes this control area covers",
          "items": {
            "type": "string"
          },
          "title": "Countries",
          "type": "array"
        },
        "id": {
          "description": "EIC code identifying this control area",
          "title": "Id",
          "type": "string"
        },
        "name": {
          "description": "Full official name of the control area",
          "title": "Name",
          "type": "string"
        },
        "short_name": {
          "description": "Short display name for the control area",
          "title": "Short Name",
          "type": "string"
        }
      },
      "required": [
        "countries",
        "id",
        "name",
        "short_name"
      ],
      "title": "ControlArea",
      "type": "object"
    }
  }
}