-
Notifications
You must be signed in to change notification settings - Fork 933
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
Describe not working on conditionnal validation for yup.array()
#1920
Comments
yup.array()
yup.array()
I have the same issue with all conditionals. |
please provide a runnable reproduction according the to the template thanks! |
Same here, i have an array of images that i need to validate a minimum of one image. my schema is :
I have reverted to the previous version 0.32.11 where it works, i have tried mixed object too didn't work. When using previous version i can console log the array of images. As you can see the schema works on previous version, but with the new version when using Any help will be apreciated, i too wanna migrate to v1. My guess is the problem is not with the conditions, but anything to do with |
Here is the codesandbox |
Describe the bug
When you add
when()
on ayup.array()
, the condition will never get described when callingdescribe
method on the validation schema.To Reproduce
Output
Expected behavior
console.log
s should return this insteadFor instance, yup is validating correctly the data when i call
validate
orvalidateAt
.Platform (please complete the following information):
The text was updated successfully, but these errors were encountered: