{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/immutable/main/json-schema/immutable-phone-number-otprequest-schema.json",
  "title": "PhoneNumberOTPRequest",
  "description": "Phone number OTP request",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/immutable-passport-profile-api-openapi.yml#/components/schemas/PhoneNumberOTPRequest",
  "type": "object",
  "required": [
    "phone_number"
  ],
  "properties": {
    "phone_number": {
      "$ref": "#/$defs/PhoneNumber"
    },
    "channel": {
      "enum": [
        "sms",
        "whatsapp"
      ],
      "type": "string"
    }
  },
  "$defs": {
    "PhoneNumber": {
      "description": "Phone number",
      "type": "string",
      "minLength": 3,
      "maxLength": 50
    }
  }
}