-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
Hi ;)
pipe schema validation is executed in reversed order than expected.
const schema = pipe(string, minStringLength(10));First minStringLength will be validated instead of string and if you try to validate e.g. undefined the type error will be thrown. See https://codesandbox.io/s/adoring-galileo-76vtn?file=/src/index.ts
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation