steep-greece-67535
08/20/2025, 3:44 PM"sms"
. It throws an error stating that only "email"
is a valid enum value, which doesn’t seem correct.
Could you please take a look and share your suggestions on what might be causing this?
Thanks in advance!
Schema:
{
"$schema": "<http://json-schema.org/draft-07/schema#>",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"first_name": {
"type": "string",
"title": "First Name",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-zA-Z]+$"
},
"last_name": {
"type": "string",
"title": "Last Name",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-zA-Z]+$"
},
"email": {
"type": [
"string",
"null"
],
"format": "email",
"title": "Email Address",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
},
"webauthn": {
"identifier": true
},
"totp": {
"account_name": true
},
"code": {
"identifier": true,
"via": "email"
},
"passkey": {
"display_name": true
}
},
"recovery": {
"via": "email"
},
"verification": {
"via": "email"
}
},
"maxLength": 320
},
"phone_number": {
"type": [
"string",
"null"
],
"format": "tel",
"title": "Phone Number",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
},
"webauthn": {
"identifier": true
},
"totp": {
"account_name": true
},
"code": {
"identifier": true,
"via": "sms"
},
"passkey": {
"display_name": true
}
},
"recovery": {
"via": "sms"
},
"verification": {
"via": "sms"
}
}
},
"avatar": {
"type": [
"string",
"null"
],
"title": "Avatar URL",
"maxLength": 2048,
"readOnly": true
},
"type": {
"type": "string",
"title": "Type",
"default": "professional",
"enum": [
"client",
"professional"
]
}
},
"required": [
"first_name",
"last_name",
"type"
],
"anyOf": [
{
"required": [
"email"
]
},
{
"required": [
"phone_number"
]
}
],
"additionalProperties": false
}
}
}
Config will be attached in next message due to limits.
Thread in Slack Conversation