{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cm-com/main/json-schema/cm-com-directory-response-schema.json",
  "title": "ArrayOfCountries",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-verification-idin-v1-openapi.yml#/components/schemas/DirectoryResponse",
  "type": "array",
  "items": {
    "title": "Country",
    "type": "object",
    "properties": {
      "country": {
        "maxLength": 128,
        "minLength": 1,
        "type": "string",
        "description": "The readable name of the country"
      },
      "issuers": {
        "title": "ArrayOfIssuers",
        "type": "array",
        "items": {
          "$ref": "#/$defs/Issuer"
        }
      }
    }
  },
  "$defs": {
    "Issuer": {
      "type": "object",
      "properties": {
        "issuer_id": {
          "$ref": "#/$defs/IssuerID"
        },
        "issuer_name": {
          "maxLength": 35,
          "minLength": 1,
          "type": "string",
          "description": "The name of the issuing bank intended for display purposes. Used as the content of the <option> in HTML dropdowns.\n"
        }
      }
    },
    "IssuerID": {
      "pattern": "^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$",
      "type": "string",
      "description": "An identifier for the bank. Used as the value of the <option> in bank selector dropdowns. The end user selects a value and iDIN will direct the end user to that bank, so that the user can identify himself.\n"
    }
  }
}