{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/travelminds-ai/json-schema/travelminds-ai-poiout-schema.json",
  "title": "POIOut",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/travelminds-ai-openapi.json#/components/schemas/POIOut",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "Canonical POI UUID."
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "POI name in source script."
    },
    "city_id": {
      "type": "string",
      "title": "City Id",
      "description": "Parent city UUID. Megacity rollup applies on city_id queries."
    },
    "city_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "City Name",
      "description": "Parent city name (denormalised for convenience)."
    },
    "iso_alpha2": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Iso Alpha2",
      "description": "Country code of the parent city."
    },
    "rating": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rating",
      "description": "Source-provided rating (string-typed; precision varies by source)."
    },
    "fsq_categories": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Fsq Categories",
      "description": "Raw upstream category labels. **Deprecated 2026-07-21** — switch to `category_normalized`."
    },
    "category_normalized": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Category Normalized",
      "description": "Ordered, deduplicated list of in-house category slugs (e.g. ['do.beach', 'eat.cafe']). First element is the primary category. ~64 leaves across 8 domains (eat / sleep / see / do / shop / move / live / geo). See https://travelminds.ai/docs/category-normalized for the full taxonomy."
    },
    "wikidata_qid": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Wikidata Qid",
      "description": "Wikidata QID (e.g. 'Q243') if the POI is grounded."
    },
    "wikipedia_en": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Wikipedia En",
      "description": "English Wikipedia article slug if known."
    },
    "wikidata_label": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Wikidata Label",
      "description": "Wikidata label used for matching."
    },
    "source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source",
      "description": "Upstream data source (e.g. 'foursquare', 'osm', 'wikidata')."
    },
    "license": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "License",
      "description": "License id from the registry (D7 posture)."
    },
    "license_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "License Url",
      "description": "Public URL of the license text."
    },
    "attribution_required": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Attribution Required",
      "description": "True if downstream use must cite the upstream source."
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "city_id"
  ]
}