{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sinch/main/json-schema/sinch-market-list-schema.json",
  "title": "MarketList",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sinch-market-requirements-api-openapi.yml#/components/schemas/MarketList",
  "type": "object",
  "properties": {
    "markets": {
      "type": "array",
      "description": "List of markets",
      "items": {
        "$ref": "#/$defs/Market"
      }
    }
  },
  "$defs": {
    "Market": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The market identifier"
        },
        "name": {
          "type": "string",
          "description": "The market name"
        },
        "countryCode": {
          "type": "string",
          "description": "The ISO 3166-1 alpha-2 country code"
        },
        "senderTypes": {
          "type": "array",
          "description": "Supported sender types",
          "items": {
            "type": "string"
          }
        },
        "requiredFields": {
          "type": "array",
          "description": "Fields required for registration",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The field name"
              },
              "type": {
                "type": "string",
                "description": "The field type"
              },
              "required": {
                "type": "boolean",
                "description": "Whether the field is required"
              },
              "description": {
                "type": "string",
                "description": "Description of the field"
              }
            }
          }
        },
        "estimatedApprovalTime": {
          "type": "string",
          "description": "Estimated time for approval"
        }
      }
    }
  }
}