Skip to content
New issue

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

pipe behavior is different than described in docs #63

Open
darkowic opened this issue Mar 27, 2021 · 2 comments
Open

pipe behavior is different than described in docs #63

darkowic opened this issue Mar 27, 2021 · 2 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@darkowic
Copy link
Contributor

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

@typeofweb typeofweb added bug Something isn't working documentation Improvements or additions to documentation labels May 1, 2021
@darkowic
Copy link
Contributor Author

darkowic commented May 3, 2021

How should it work in your opinion @mmiszy ?

@typeofweb
Copy link
Member

Not sure yet ;)

@typeofweb typeofweb self-assigned this Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants