{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/datagraph-city/json-schema/datagraph-city-city-info-schema.json",
  "title": "CityInfo",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/datagraph-city-openapi.json#/components/schemas/CityInfo",
  "properties": {
    "code": {
      "type": "string",
      "title": "Code"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "status": {
      "$ref": "#/$defs/CityStatus"
    },
    "datasets": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Datasets"
    },
    "last_updated": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Updated"
    }
  },
  "type": "object",
  "required": [
    "code",
    "name",
    "status",
    "datasets",
    "last_updated"
  ],
  "$defs": {
    "CityStatus": {
      "type": "string",
      "enum": [
        "active",
        "beta",
        "coming_soon",
        "deprecated"
      ],
      "title": "CityStatus"
    }
  }
}