-
Version `v0.0.0-20200428143746-21a406dcc535` for go package `github.com/asaskevich/govalidator` is missing, although it appears in [pkg.go.dev](https://pkg.go.dev/github.com/asaskevich/govalidator@v0.…
-
The result of the structure verification is returned and a single error message is returned,Validation stops at one error and returns an error instead of validating all
lb151 updated
2 years ago
-
-
Would it be possible to return the error bag on the first failure as opposed to running all the rules.
1. Bail when the first rule in a ruleset for a field fails
example:
```
rules := govalidato…
-
### Bug Report
#### Summary
IsURL is accepting "http//" as legitimate URL prefix
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2
#### Current behavior
```govalidat…
-
```
if ok, err := govalidator.ValidateStruct(user); err != nil {
st := reflect.TypeOf(err)
fmt.Println(st)
// result: govalidator.Errors type
fmt.Println(st.MethodByName("Errors"))
// result…
-
the struct type with a valid tag was validated here ,
https://github.com/asaskevich/govalidator/blob/f9ffefc3facfbe0caee3fea233cbb6e8208f4541/validator.go#L767
but it would be validated here anoth…
-
make all
go build -v -o ./bin/server
github.com/asaskevich/govalidator
# github.com/asaskevich/govalidator
../../asaskevich/govalidator/types.go:27: undefined: sort.Slice
make[1]: *** [all] Error…
-
When `govalidator.SetFieldsRequiredByDefault` is enabled, the error message for an unset field is misleading.
It reports "validation missing" for any validation except `valid:"-"`:
```
All fields…
-
Go 1.12.2 on Fedora Rawhide
```
Testing in: /builddir/build/BUILD/govalidator-f61b66f89f4a311bef65f13e575bcf1a2ffadda6/_build/src
PATH: /builddir/build/BUILD/govalidator-f61b66f89f4a311bef65f…