{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/travelminds-ai/json-schema/travelminds-ai-score-out-schema.json",
  "title": "ScoreOut",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/travelminds-ai-openapi.json#/components/schemas/ScoreOut",
  "properties": {
    "city_id": {
      "type": "string",
      "title": "City Id",
      "description": "City UUID this score row applies to."
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "City name."
    },
    "iso_alpha2": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Iso Alpha2",
      "description": "Country code."
    },
    "master_score": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Master Score",
      "description": "Composite master score on a 0-100 scale (higher ranks higher), rounded to 2dp; the values held ran from 15.56 to 92.35 on 14 November 2026."
    },
    "tier": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tier",
      "description": "Internal tier classification."
    },
    "social_sub": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Social Sub",
      "description": "Social/travel-buzz sub-score."
    },
    "connectivity_sub": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Connectivity Sub",
      "description": "Connectivity (air/rail/road) sub-score."
    },
    "nps_sub": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nps Sub",
      "description": "Net-promoter style sub-score from review aggregates."
    },
    "value_index": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Value Index",
      "description": "Cost-vs-quality value index."
    },
    "dimensions_scored": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dimensions Scored",
      "description": "Number of input dimensions used to compute this score."
    },
    "rising_star": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rising Star",
      "description": "Rising-star momentum signal."
    },
    "family_travel": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Family Travel",
      "description": "Family-travel suitability index."
    },
    "luxury_index": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Luxury Index",
      "description": "Luxury-travel suitability index."
    },
    "adventure_travel": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Adventure Travel",
      "description": "Adventure-travel suitability index."
    },
    "retirement_expat": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Retirement Expat",
      "description": "Retirement / long-term expat suitability."
    },
    "weekend_getaway": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Weekend Getaway",
      "description": "Short-trip / weekend-getaway suitability."
    },
    "overtourism_risk": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Overtourism Risk",
      "description": "Overtourism risk index (higher = more crowded)."
    },
    "best_fit": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Best Fit",
      "description": "Best-fit traveler-persona label (free-form short string)."
    },
    "indices_scored": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Indices Scored",
      "description": "Number of derived indices populated for this row."
    }
  },
  "type": "object",
  "required": [
    "city_id",
    "name"
  ]
}