Replies: 1 comment
-
|
You can use z.e164().or(z.email())
z.string().regex(/any_regex_here/).or(z.email()) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a form field that accepts Phone number as string or email as string like (phoneNumberOrEmail) please how do i write a schema to capture the validation of both at a time
Beta Was this translation helpful? Give feedback.
All reactions