Skip to content

Custom string validator function adds unwanted key to parent object #271

Open
@rmattos500

Description

@rmattos500

Adding a custom string validator function seems to have caused my other validation to stop working correctly.

I have simplified my code down and attached a link to the repo containing an example of the issue I am running into. In the example, I am using a dummy custom string validator function that should not be causing the validation to fail, however when run, the validation fails due to some of my other rules I defined in my schema. If you comment out the custom string validator function, the rest of the rules that previously failed now pass. Thus why I believe the issue seems to stem from defining a custom string validator function.

Link to example repo:
https://github.com/rmattos500/fastest-validator-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions