{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/companydata-dk/json-schema/companydata-dk-app-routers-reference-municipality-list-response-schema.json",
  "title": "MunicipalityListResponse",
  "description": "Response with list of municipalities.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/companydata-dk-reference-data-api-openapi.yml#/components/schemas/app__routers__reference__MunicipalityListResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/Municipality"
      },
      "type": "array",
      "title": "Data",
      "description": "List of municipalities"
    },
    "meta": {
      "additionalProperties": true,
      "type": "object",
      "title": "Meta",
      "description": "Response metadata"
    }
  },
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "$defs": {
    "Municipality": {
      "properties": {
        "code": {
          "type": "string",
          "title": "Code",
          "description": "Municipality code"
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Municipality name"
        },
        "region_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Region Code",
          "description": "Region code"
        },
        "region_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Region Name",
          "description": "Region name"
        }
      },
      "type": "object",
      "required": [
        "code",
        "name"
      ],
      "title": "Municipality",
      "description": "Municipality data for dropdown/filter."
    }
  }
}