{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/entityindex-ai/json-schema/entityindex-ai-restaurant-schema.json",
  "title": "Restaurant",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/entityindex-ai-openapi.json#/components/schemas/Restaurant",
  "type": "object",
  "required": [
    "slug",
    "name",
    "address",
    "geo",
    "serves_cuisine",
    "reservation"
  ],
  "properties": {
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "const": "Restaurant"
    },
    "city": {
      "type": "string"
    },
    "address": {
      "type": "object",
      "additionalProperties": true
    },
    "geo": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        }
      }
    },
    "serves_cuisine": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "opening_hours": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "days": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "opens": {
            "type": "string"
          },
          "closes": {
            "type": "string"
          }
        }
      }
    },
    "menu": {
      "type": "object",
      "additionalProperties": true
    },
    "menu_url": {
      "type": "string",
      "format": "uri"
    },
    "reservation": {
      "type": "object",
      "properties": {
        "channel": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "telephone": {
          "type": "string"
        }
      }
    },
    "official_url": {
      "type": "string",
      "format": "uri"
    },
    "verified": {
      "type": "object",
      "additionalProperties": {
        "type": "boolean"
      }
    },
    "sources": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "checked": {
      "type": "string",
      "format": "date"
    },
    "page": {
      "type": "string",
      "format": "uri"
    },
    "license": {
      "$ref": "#/$defs/License"
    }
  },
  "$defs": {
    "License": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "attribution": {
          "type": "string"
        }
      }
    }
  }
}