Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yup.test #171

Open
the-mgi opened this issue May 28, 2024 · 0 comments
Open

yup.test #171

the-mgi opened this issue May 28, 2024 · 0 comments

Comments

@the-mgi
Copy link

the-mgi commented May 28, 2024

i have a field whose values can be either [a,b,c,d,e]
would like to add validation constraint to another field as
if === a ? length should be 5
if === b ? length should be 10
if === c ? length should be 15
and so on.
in yup i am aware that this can be done using .test function. does this library support .test creation? if so any example would be appreciated.
if not then can you please point me in the right direction to add this custom functionality?
any help would be apprecitated, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant