Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels