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
I have this:
revalidator.validate({foo: undefined}, { properties: { foo: { enum: ['foo', 'bar'], type: 'string', }, }, });
Which doesn't generate any error, surely undefined is not ['foo', 'bar'] nor is it a string, shouldn't this throw an error?
undefined
['foo', 'bar']
The text was updated successfully, but these errors were encountered:
Only if you have required: true in the schema for foo.
required: true
Sorry, something went wrong.
I tried with required but IIRC it passed as well, I had to convert the rule to a pattern: '(foo|bar)' currently. Will double check.
pattern: '(foo|bar)'
No branches or pull requests
I have this:
Which doesn't generate any error, surely
undefined
is not['foo', 'bar']
nor is it a string, shouldn't this throw an error?The text was updated successfully, but these errors were encountered: