Skip to content

pipe behavior is different than described in docs #63

@darkowic

Description

@darkowic

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 workingdocumentationImprovements or additions to documentation

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions