{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/drinkedin-net/json-schema/drinkedin-net-search-response-schema.json",
  "title": "SearchResponse",
  "description": "Unified search response with bars and cocktails",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/drinkedin-net-openapi.json#/components/schemas/SearchResponse",
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "bars": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BarSearchResult"
      }
    },
    "cocktails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CocktailSearchResult"
      }
    },
    "total": {
      "type": "integer"
    }
  },
  "$defs": {
    "BarSearchResult": {
      "type": "object",
      "description": "Bar search result with type indicator",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "bar"
          ]
        },
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "address": {
          "type": [
            "string",
            "null"
          ]
        },
        "rating": {
          "type": [
            "number",
            "null"
          ]
        },
        "price_range": {
          "type": [
            "string",
            "null"
          ]
        },
        "image_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "display_text": {
          "type": "string"
        }
      }
    },
    "CocktailSearchResult": {
      "type": "object",
      "description": "Cocktail search result with type indicator",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "cocktail"
          ]
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "glass_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "rating": {
          "type": [
            "number",
            "null"
          ]
        },
        "total_ratings": {
          "type": "integer"
        },
        "image_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "display_text": {
          "type": "string"
        }
      }
    }
  }
}