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
Arrays were just introduced in #18, however one outstanding issue with them is that they only currently allow allows for array of one type of input.
Valid
v.array([v.string()]).parse(['hello', 'world']); v.array([v.number()]).parse([123, 987]);
Invalid
v.array([v.string(), v.number()]).parse(['hello', 123, 'world']); // Error: Expected a number
It would be great to have this behaviour working.
The text was updated successfully, but these errors were encountered:
Kosai106
No branches or pull requests
Arrays were just introduced in #18, however one outstanding issue with them is that they only currently allow allows for array of one type of input.
Example
Valid
Invalid
It would be great to have this behaviour working.
The text was updated successfully, but these errors were encountered: