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
Describe the bug
Nope.object().shape({a: Nope.string()}).validate(undefined); TypeError: Cannot read property 'validate' of undefined Nope.object().shape({a: Nope.string()}).validate(); TypeError: Cannot read property 'validate' of undefined
Expected behavior It should return undefined like other items validation eg
Nope.array().of(Nope.string()).validate(); undefined
The text was updated successfully, but these errors were encountered:
And it's look like shape validation not work generally
let sss = Nope.object().shape({ a: Nope.string().required() }) undefined sss.validate({ b: 123 }) { a: 'This field is required' } sss.validate({ a: 123 }) undefined sss.validate({ a: [123] }) undefined
Sorry, something went wrong.
Ouhhh
Nope.array().of(Nope.string()).validate(1); TypeError: entry.some is not a function
No branches or pull requests
Describe the bug
Expected behavior
It should return undefined like other items validation eg
The text was updated successfully, but these errors were encountered: