{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-location-search-paged-response-schema.json",
  "title": "LocationSearchPagedResponse",
  "description": "Paginated list of location search results.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-locations-api-openapi.yml#/components/schemas/LocationSearchPagedResponse",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LocationSearchResult"
      },
      "description": "Locations matching the search term."
    },
    "totalCount": {
      "type": "integer",
      "format": "int64",
      "description": "Total number of matching locations across all pages."
    }
  },
  "$defs": {
    "LocationSearchResult": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "description": "A single location match for autocomplete dropdowns.",
      "properties": {
        "id": {
          "type": "string",
          "description": "certifyLocationId — the stored reference for a selected location."
        },
        "name": {
          "type": "string",
          "description": "Location display name."
        }
      }
    }
  }
}