Skip to content

pipe behavior is different than described in docs #63

Open

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

Activity

  1. added
    bugSomething isn't working
    documentationImprovements or additions to documentation
    on May 1, 2021
  2. darkowic commented on May 3, 2021

    @darkowic
    ContributorAuthor

    How should it work in your opinion @mmiszy ?

  3. typeofweb commented on May 5, 2021

    @typeofweb
    Member

    Not sure yet ;)

  4. self-assigned this
    on Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions