-
Updated
Oct 23, 2021 - TypeScript
validation
Here are 3,949 public repositories matching this topic...
-
Updated
Sep 3, 2021 - 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
Oct 20, 2021 - TypeScript
-
Updated
Oct 24, 2021 - PHP
-
Updated
Oct 24, 2021 - Python
-
Updated
Oct 21, 2021 - JavaScript
-
Updated
Oct 22, 2021 - TypeScript
-
Updated
Oct 22, 2021 - JavaScript
-
Updated
Oct 5, 2021 - JavaScript
-
Updated
Oct 19, 2021 - Python
-
Updated
Oct 24, 2021 - PHP
-
Updated
Oct 21, 2021 - TypeScript
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
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
Oct 12, 2021 - TypeScript
-
Updated
Sep 29, 2021 - Swift
-
Updated
Oct 6, 2021 - JavaScript
-
Updated
Sep 1, 2021 - JavaScript
-
Updated
Oct 20, 2021 - Python
-
Updated
Oct 22, 2021 - TypeScript
-
Updated
Aug 23, 2021 - Python
-
Updated
Oct 22, 2021 - Makefile
-
Updated
Sep 29, 2021 - Go
-
Updated
Sep 21, 2021 - TypeScript
-
Updated
Oct 23, 2021 - PHP
With #235 I've noticed that InstanceOf is undocumented in the readme.
-
Updated
Oct 5, 2021 - JavaScript
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."
International Russian passport contains 9 digits, not 10:
https://github.com/validatorjs/validator.js/blob/13651ea2095c0966576fd7bf44505fb5501681de/src/lib/isPassportNumber.js#L53