{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casafari/json-schema/casafari-api-type-ahead-v1-schema.json",
  "title": "ApiTypeAheadV1",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casafari-api-references-api-openapi.yml#/components/schemas/ApiTypeAheadV1",
  "properties": {
    "typeahead": {
      "items": {
        "properties": {
          "location_id": {
            "type": "integer",
            "description": "The location id."
          },
          "name": {
            "type": "string",
            "description": "The location name."
          },
          "matched_name": {
            "type": "string",
            "maxLength": 256,
            "description": "The matched name of the location name."
          },
          "administrative_level": {
            "type": [
              "string",
              "null"
            ],
            "description": "The administrative level."
          },
          "breadcrumbs": {
            "items": {
              "properties": {
                "location_id": {
                  "type": "integer",
                  "description": "Location ID."
                },
                "name": {
                  "type": "string",
                  "description": "The name of location."
                }
              },
              "type": "object",
              "required": [
                "location_id",
                "name"
              ]
            },
            "type": "array",
            "description": "Location breadcrumbs sorted from top to bottom."
          }
        },
        "type": "object",
        "required": [
          "location_id",
          "name",
          "matched_name",
          "administrative_level",
          "breadcrumbs"
        ]
      },
      "type": "array",
      "description": "The typeahead suggestions."
    }
  },
  "type": "object",
  "required": [
    "typeahead"
  ]
}