{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/open-government-portugal/json-schema/open-government-portugal-territory-suggestion-schema.json",
  "title": "TerritorySuggestion",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/open-government-portugal-spatial-api-openapi.yml#/components/schemas/TerritorySuggestion",
  "properties": {
    "code": {
      "description": "The territory main code",
      "type": "string"
    },
    "id": {
      "description": "The territory identifier",
      "type": "string"
    },
    "level": {
      "description": "The territory administrative level",
      "type": "string"
    },
    "name": {
      "description": "The territory name",
      "type": "string"
    },
    "uri": {
      "description": "The zone uri",
      "type": "string"
    }
  },
  "required": [
    "code",
    "id",
    "level",
    "name",
    "uri"
  ],
  "type": "object"
}