{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/terminal49/json-schema/terminal49-metro-area-schema.json",
  "title": "Metro area model",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/terminal49-metro-areas-api-openapi.yml#/components/schemas/metro_area",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "attributes": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "code": {
          "type": "string",
          "description": "UN/LOCODE"
        },
        "state_abbr": {
          "type": [
            "string",
            "null"
          ],
          "x-stoplight": {
            "id": "j9yuwej2ym7yq"
          }
        },
        "country_code": {
          "type": "string",
          "x-stoplight": {
            "id": "hfupdk750wcrj"
          }
        },
        "time_zone": {
          "type": "string",
          "description": "IANA tz",
          "x-stoplight": {
            "id": "izvtty345nfsz"
          }
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ],
          "x-stoplight": {
            "id": "9l62t4cwsp53w"
          }
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ],
          "x-stoplight": {
            "id": "3tzibc0li8xvg"
          }
        }
      }
    },
    "type": {
      "type": "string",
      "enum": [
        "metro_area"
      ]
    },
    "": {
      "type": "string",
      "x-stoplight": {
        "id": "kwcjunrtu3r5o"
      }
    }
  },
  "required": [
    "id",
    "type"
  ]
}