{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yentaknows-ai/json-schema/yentaknows-ai-menu-match-schema.json",
  "title": "MenuMatch",
  "description": "One cross-venue menu match — a published menu item tagged with the venue it belongs to, so an agent can rank venues by what is on their menu from one call. No organization or row id ever appears; the venue is identified only by its public slug.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dev-openapi.json#/components/schemas/MenuMatch",
  "type": "object",
  "properties": {
    "venue_slug": {
      "type": "string"
    },
    "venue_name": {
      "type": "string"
    },
    "menu": {
      "type": "string",
      "description": "The menu the item is on."
    },
    "section": {
      "type": "string",
      "description": "The menu section the item is in."
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "price": {
      "type": "string",
      "description": "Exact decimal string; never a float (it is a money value)."
    },
    "currency": {
      "type": "string"
    },
    "dietary_tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "allergens": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "yenta_page_url": {
      "type": "string",
      "description": "The venue's page on Yenta, to open or cite; present only when it is live. The same key the venue views use."
    },
    "allergen_info": {
      "type": "string",
      "enum": [
        "not_declared"
      ],
      "description": "Present on an item whose allergens list declares nothing: none declared, which may mean none or not entered. It is not a guarantee an allergen is absent."
    },
    "dietary_info": {
      "type": "string",
      "enum": [
        "not_declared"
      ],
      "description": "Present on an item whose dietary_tags list declares nothing: none declared, which may mean none or not entered."
    },
    "text_home": {
      "type": "string",
      "description": "The same value as yenta_page_url, kept for one release; read yenta_page_url."
    },
    "source": {
      "allOf": [
        {
          "$ref": "#/$defs/Source"
        }
      ],
      "description": "The item's venue's OWN freshness reference (its approved revision, approved_at and the venue's /menu page as url), the shape a search_venues candidate's source has. The list's response-level source stays the directory reference."
    }
  },
  "required": [
    "venue_slug",
    "venue_name",
    "name",
    "price",
    "currency",
    "dietary_tags",
    "allergens"
  ],
  "$defs": {
    "Source": {
      "type": "object",
      "description": "Which approved revision an answer was read from.",
      "properties": {
        "content_version": {
          "type": "integer"
        },
        "source": {
          "type": "string",
          "description": "'directory' for cross-venue reads, or 'approved-content-revision:<id>' for a single venue/destination."
        },
        "approved_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the cited revision was approved (ISO-8601), so an answer can be quoted 'as of' that time. Present on a single venue/destination answer and on each search_venues candidate's own per-item source; absent on a cross-venue directory footer."
        },
        "powered_by": {
          "type": "string",
          "description": "Brand signature on the entry reads only."
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The page a person can open to check the answer: the venue's or destination's page for the section that answered (/menu, /faq, /listings/{id}/{slug}, / for an overview). Present on an answered single venue/destination read and on each search_venues candidate's and search_menus item's own source; absent on the cross-venue directory footer and on a not_available answer."
        }
      },
      "required": [
        "content_version",
        "source"
      ]
    }
  }
}