Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required_if not working with numbers #469

Open
nehanegi220682 opened this issue Jun 27, 2023 · 0 comments
Open

Required_if not working with numbers #469

nehanegi220682 opened this issue Jun 27, 2023 · 0 comments

Comments

@nehanegi220682
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant