{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alfil-co/json-schema/alfil-co-geografias-response-schema.json",
  "title": "GeografiasResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alfil-co-geograf-as-api-openapi.yml#/components/schemas/GeografiasResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Geografia"
      }
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false,
  "$defs": {
    "Geografia": {
      "type": "object",
      "properties": {
        "divipola": {
          "type": "string",
          "description": "Código DIVIPOLA (5 dígitos para municipio)"
        },
        "nombre": {
          "type": "string"
        },
        "nivel": {
          "type": "string",
          "enum": [
            "departamento",
            "municipio"
          ]
        },
        "departamento": {
          "type": "object",
          "properties": {
            "divipola": {
              "type": "string"
            },
            "nombre": {
              "type": "string"
            }
          },
          "required": [
            "divipola",
            "nombre"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "divipola",
        "nombre",
        "nivel"
      ],
      "additionalProperties": false,
      "description": "Entrada geográfica DIVIPOLA"
    }
  }
}