{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kahvetabela-com/json-schema/kahvetabela-com-nearby-response-schema.json",
  "title": "NearbyResponse",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kahvetabela-com-openapi.json#/components/schemas/NearbyResponse",
  "type": "object",
  "required": [
    "results"
  ],
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "allOf": [
          {
            "$ref": "#/$defs/LocationSummary"
          },
          {
            "type": "object",
            "properties": {
              "distance": {
                "type": "number"
              },
              "has_audio": {
                "type": "boolean"
              }
            }
          }
        ]
      }
    }
  },
  "$defs": {
    "LocationSummary": {
      "type": "object",
      "required": [
        "id",
        "name",
        "lat",
        "lon",
        "category"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        },
        "category": {
          "type": "string"
        },
        "image_url": {
          "type": "string"
        }
      }
    }
  }
}