Skip to content

Required_if not working with numbers #469

Description

@nehanegi220682

What version of this package are you using?
latest

What operating system, Node.js, and npm version?
node v20 npm v9

What happened?
required_if is unable to handle numeric values, so if i do
required_if:age,16
when i send {age: 16} it does not pass, but when i do {age: "16"} it passes.

What did you expect to happen?
It should pass with {age: 16} where 16 is number and not string

Are you willing to submit a pull request to fix this bug?
Not at this moment

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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