AnyOf or OneOf validation in adonisJs #2771
Vishwas-verma
started this conversation in
General
Replies: 1 comment 2 replies
-
Any update anyone ?? |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hye,
is there a way to choose between two keys while validating , like we have anyOf or oneOf in Json schema is there similar thing in adonisJS.
Here is ny snippet
My use case is either user enter phone_number and otp or else enter email and password , not all at same time.
@thetutlage is it possible in adonis ?
Beta Was this translation helpful? Give feedback.
All reactions