-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Conditional Validation with "sometimes" fails on empty array #13007
Comments
Can you share the attribute name?
|
I didn't mean on an array of values, but on an empty array as a value. Say you test the following attribute: The rule |
This test currently passes:
|
Fair enough. The plot thickens. This test currently fails:
Looks like the issue arises only with nested arrays of values. |
It's fixed, will be working as expected as of the next patch release. |
Great, thanx, closing the issue then. |
The title is self-explanatory.
Applying the following rule on an empty array
[]
passes validation:sometimes|required
It should fail as the same rule correctly fails for a null value or an empty string.
The text was updated successfully, but these errors were encountered: