Skip to content
#

validation

Here are 4,489 public repositories matching this topic...

ezkemboi
ezkemboi commented Oct 8, 2021

I would like to give this to the people who are new and would like to start contributing to validator.js.

The current version in isMobilePhone validation, we have less than 195 phone validations i.e

In the code https://github.com/validatorjs/validator.js/blob/master/src/lib/isMobilePhone.js, the validations exist from line 5 to line 119, which means we have probably 119 - 5 countries phone

renta
renta commented Mar 24, 2021

Package version eg. v9, v10:

github.com/go-playground/locales v0.13.0
github.com/go-playground/universal-translator v0.17.0
github.com/go-playground/validator/v10 v10.2.0

Issue, Question or Enhancement:

Golangci-lint (https://github.com/golangci/golangci-lint) comes with a errorlint linter (https://github.com/polyfloyd/go-errorlint). When I switched it on, I got this issue f

express-validator
torkelrogstad
torkelrogstad commented Dec 22, 2021

The less than/greater than checks should check if the input value is NaN. NaN is defined to not be equal to any other number, and all numerical comparisons yield false. Therefore, if I have a field that's annotated with (for example) (validate.rules).double.gt = 0, that field should fail validation if given NaN.

Improve this page

Add a description, image, and links to the validation topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the validation topic, visit your repo's landing page and select "manage topics."

Learn more