Skip to content

Multiple validators for properties in an object #2

@mkeedlinger

Description

@mkeedlinger

If I want to have scheme like this:

scheme = {
    host: schema.isString,
    password: schema.minLength([10])
}

I can't check if host is both a longer than 5 and shorter than 10.

Either using multiple validators on a single property could be a really cool new feature or I'm missing something

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions