{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/listings-api/json-schema/listings-api-country-type-schema.json",
  "title": "CountryType",
  "description": "A country supported by Listings API.",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/listings-api-supporting-apis-api-openapi.yml#/components/schemas/CountryType",
  "type": "object",
  "properties": {
    "iso": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "dialCode": {
      "type": "string"
    },
    "states": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StateType"
      }
    }
  },
  "required": [
    "iso",
    "name"
  ],
  "$defs": {
    "StateType": {
      "type": "object",
      "properties": {
        "iso": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "iso",
        "name"
      ]
    }
  }
}