{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/companydata-dk/json-schema/companydata-dk-municipality-schema.json",
  "title": "Municipality",
  "description": "Municipality data for dropdown/filter.",
  "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/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"
  ]
}