{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yentaknows-ai/json-schema/yentaknows-ai-source-schema.json",
  "title": "Source",
  "description": "Which approved revision an answer was read from.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dev-openapi.json#/components/schemas/Source",
  "type": "object",
  "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"
  ]
}