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
Check this snippet.
Having this data: const data = [{ str: 'abc' }];
const data = [{ str: 'abc' }];
The first (sanity) check validates:
v8n().schema({ str: v8n().string() }).check(data[0]);
But if the array itself is checked - it throws:
v8n().every.schema({ str: v8n().string() }).check(data);
The text was updated successfully, but these errors were encountered:
imbrn
No branches or pull requests
Check this snippet.
Having this data:
const data = [{ str: 'abc' }];
The first (sanity) check validates:
But if the array itself is checked - it throws:
The text was updated successfully, but these errors were encountered: