{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casafari/json-schema/casafari-api-get-locations-v1-schema.json",
  "title": "ApiGetLocationsV1",
  "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/ApiGetLocationsV1",
  "properties": {
    "name": {
      "type": "string",
      "description": "Location name to search."
    },
    "coordinates": {
      "items": {
        "properties": {
          "latitude": {
            "type": "number",
            "maximum": 90.0,
            "minimum": -90.0,
            "description": "Latitude."
          },
          "longitude": {
            "type": "number",
            "maximum": 180.0,
            "minimum": -180.0,
            "description": "Longitude."
          }
        },
        "type": "object",
        "required": [
          "latitude",
          "longitude"
        ]
      },
      "type": "array",
      "minItems": 4,
      "description": "Limit search to locations within a closed polygon. First and last points must match."
    },
    "zip_codes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 15,
      "description": "List of zip codes to filter by."
    },
    "lang": {
      "type": "string",
      "description": "Language to use for the location names in the response. (When the provided language is not supported, the results will be returned in English.)"
    }
  },
  "type": "object"
}