Next-gen identity server replacing your Auth0, Okta, Firebase with hardened security and PassKeys, SMS, OIDC, Social Sign In, MFA, FIDO, TOTP and OTP, WebAuthn, passwordless and much more. Golang, headless, API-first. Available as a worry-free SaaS with the fairest pricing on the market!
jsonschema schema validation is failing when using a valid phone number.
Debugging we've found that github.com/nyaruka/phonenumbers v1.1.6 is being used under the hood.
Issue is solved using latest phonenumbers version that is v1.3.5. We've tested it locally.
Please update this dependency to access latest phone validation features.
It's affecting phone validation due to outdated rules even when phone format is valid.
Preflight checklist
Ory Network Project
No response
Describe the bug
jsonschema schema validation is failing when using a valid phone number.
Debugging we've found that
github.com/nyaruka/phonenumbers
v1.1.6 is being used under the hood.Issue is solved using latest
phonenumbers
version that is v1.3.5. We've tested it locally.Please update this dependency to access latest phone validation features. It's affecting phone validation due to outdated rules even when phone format is valid.
Reproducing the bug
Here is a small code that reproduces the issue:
phone.go:
go.mod:
Here's the output:
Relevant log output
No response
Relevant configuration
No response
Version
v1.1.0
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response