Skip to content

Add ability to ignore extraneous properties, instead of failing with error #35

@ronniel1

Description

@ronniel1

Hi,

I'm evaluating this package for replacing Joi validations that we have.
The main thing I like in this package is that I don't need to declare the object type and schema separately (using t.InferType).

One thing that I'm missing is the ability to to ignore extraneous properties from the returned value of t.as(). So if I get invalid properties, there will be no error, and the object returned from t.as() will not include these properties

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