{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appyway/json-schema/appyway-country-ok-response-schema.json",
  "title": "CountryOkResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appyway-countries-api-openapi.yml#/components/schemas/CountryOkResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "readOnly": true
    },
    "result": {
      "$ref": "#/$defs/Country"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Country": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier of the country"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the country"
        },
        "specialDays": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/SpecialDay"
          },
          "description": "List of holidays and named days that apply to this country."
        },
        "bounds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "array",
            "items": {
              "type": "number",
              "format": "double"
            }
          },
          "description": "A rectangular area indicating roughly where the country is situated"
        },
        "defaultBaseMapId": {
          "type": "integer",
          "description": "The default basemap to use for this country",
          "format": "int32"
        },
        "entitlementTypes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "Entitlement types available in this country"
        },
        "restrictionTypes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "Restriction types available in this country"
        },
        "assetTypes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "Asset types available in this country"
        },
        "countryCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO 3166-1 alpha-3 country code for this country"
        },
        "currencyCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO 4217 currency code for this country"
        },
        "languageCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "BCP 47 language tag for this country"
        },
        "hasMetricSpeedLimits": {
          "type": "boolean",
          "description": "Whether this country uses the metric system for speed limits"
        }
      },
      "additionalProperties": false
    },
    "SpecialDay": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name"
        },
        "isHoliday": {
          "type": "boolean",
          "description": "Indicates whether this day is considered a holiday"
        },
        "dates": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string",
            "description": "ISO-8601 date pattern"
          },
          "description": "Dates on which this day is in effect"
        }
      },
      "additionalProperties": false
    }
  }
}