Skip to content

Throw error when extra fields are present #11

@JbIPS

Description

@JbIPS

For now, the extractor only pluck the wanted fields and set the optional to null and the validator just check all required fields are here.

Would it be possible to throw a validation for an extra field is the validated object? Maybe add a allowsExtraFields options, default to true, in the .validate() method?

Or is it already a solution to do that? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions