{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fitko/json-schema/fitko-area-result-schema.json",
  "title": "Ergebnis einer Gebietessuche.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fitko-routing-api-openapi.yml#/components/schemas/area-result",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer",
      "format": "int32",
      "description": "Anzahl zurückgegebener Treffer",
      "maximum": 500,
      "minimum": 0
    },
    "offset": {
      "type": "integer",
      "format": "int32",
      "description": "Startpunkt in der Gesamtanzahl der Suchtreffer",
      "minimum": 0
    },
    "totalCount": {
      "type": "integer",
      "format": "int32",
      "description": "Gesamtanzahl der Suchtreffer",
      "minimum": 0
    },
    "areas": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/area"
      },
      "minItems": 0,
      "maxItems": 500,
      "description": "Aktuelle Suchtreffer"
    }
  },
  "required": [
    "count",
    "offset",
    "totalCount",
    "areas"
  ],
  "$defs": {
    "area": {
      "title": "Gebiet",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^\\d{1,}",
          "description": "Id des Gebietes"
        },
        "name": {
          "type": "string",
          "description": "Name des Gebietes"
        },
        "type": {
          "type": "string",
          "description": "Typ des Gebietes"
        }
      },
      "required": [
        "id",
        "name",
        "type"
      ]
    }
  }
}