-
Updated
May 2, 2022 - TypeScript
validation
Here are 4,405 public repositories matching this topic...
-
Updated
Apr 28, 2022 - JavaScript
Are you submitting a bug report or a feature request?
Bug? I guess.
What is the current behavior?
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
-
Updated
May 1, 2022 - Python
-
Updated
Apr 29, 2022 - TypeScript
-
Updated
May 2, 2022 - PHP
-
Updated
May 2, 2022 - TypeScript
-
Updated
Apr 1, 2022 - JavaScript
-
Updated
May 1, 2022 - JavaScript
-
Updated
Mar 17, 2022 - JavaScript
-
Updated
Apr 27, 2022 - Python
-
Updated
May 2, 2022 - TypeScript
-
Updated
May 1, 2022 - PHP
Middleware fail fast
I managed to find a way to fail-fast the validation chain with bail, but what about failing fast the middleware list?
Say, I have
.post(
'/somewhere',
body('name').exists(),
body('phoneNumber').exists(),
handleStuff
)
If the name validation fails, I don't care to check phoneNumber anymore... Wasn't able to find a way to fail fast in this case. In the case
-
Updated
Apr 19, 2022 - TypeScript
type Item struct {
Bt int `valid:"range(1|100)"`
}
func main() {
t := Item{-1}
ok, err := govalidator.ValidateStruct(t)
fmt.Println(ok, err)
}
output:Bt: Validator range(1|100) doesn't support kind int;
-
Updated
May 2, 2022 - Swift
-
Updated
Mar 29, 2022 - JavaScript
-
Updated
May 2, 2022 - JavaScript
-
Updated
Apr 29, 2022 - Python
-
Updated
Feb 21, 2022 - TypeScript
-
Updated
Jan 20, 2022 - Go
-
Updated
Apr 28, 2022 - Makefile
-
Updated
Aug 23, 2021 - Python
-
Updated
Apr 28, 2022 - TypeScript
What version of CUE are you using (cue version
)?
v0.4.0
Does this issue reproduce with the latest release?
Yes
What did you do?
Use strconv.FormatInt
for integers larger than 64 bit doesn't work.
The reason is that these functions are generated from the respective Go packages, which only supports up to 64 bit.
What did you expect to see?
Instead, these me
-
Updated
Apr 27, 2022 - PHP
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.
Add this topic to your repo
To associate your repository with the validation topic, visit your repo's landing page and select "manage topics."
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.eIn 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