We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This can already be done using the deep validation logic but it may be useful to validate each array entry with the same validation rule.
The typical use case would be when expecting an array whose values are all of the same type.
Something like:
{array:{type:"array", required: true, values:{type:"number"}}}
The text was updated successfully, but these errors were encountered:
Have you added this yet??
Sorry, something went wrong.
No, hence this issue is still open.
Any updates on this?
Implemented in 0.4.8, see c02d5d3, 75997f3 and 3089416.
0.4.8
Test spec is here: https://github.com/freeformsystems/async-validate/blob/master/test/spec/array-values.js
Closing as implemented, create a new issue if you find a bug with this functionality.
tmpfs
No branches or pull requests
This can already be done using the deep validation logic but it may be useful to validate each array entry with the same validation rule.
The typical use case would be when expecting an array whose values are all of the same type.
Something like:
The text was updated successfully, but these errors were encountered: