-
Description
------------
`TestIsExistingEmail` fails for `foo@bar.museum`.
Environment
-------------
Go version: `go version go1.14 darwin/amd64`
Details
-------
Still investigatin…
-
I would like to add the ability to trim input before validating inside govalidator.ValidateStruct().
There could be a sanitizer map that is run in govalidator.ValidateStruct() before the Validators…
-
### Problem to solve
Right now `oslo validate` relies on [govalidator](https://github.com/asaskevich/govalidator) and it's struct level annotations to run the validation of the selected specs.
Thi…
-
```
./github.com/asaskevich/govalidator/utils.go:156:21: regexpMust: for const patterns like `[ &_=+:]`, use regexp.MustCompile
./github.com/asaskevich/govalidator/utils.go:160:16: regexpMust: for c…
-
### BC Break Report
Empty values are not passed to custom validator.
| Q | A
|------------ | ------
| Version | v0.0.0-20200907205600-7a23bdc65eef
#### Summary
Empty val…
-
IsURL() seems to think `http://foo:b#ar@host.com:123/1231?a=b` is a valid URL. I disagree, as
1. either it would parse foo as the hostname and b as the port; and port has to be *DIGIT as per th…
-
func Test_UUID_Struct(t *testing.T) {
type TestRequest struct {
ID uuid.UUID `valid:"uuid,required"`
}
uuid := uuid.FromStringOrNil("db87461e-19b2-47ef-8531-98006921aaa1")
request := …
-
Hi, thanks for this great library! So I know that the 'required' struct tag raises an error if you provide an integer that equals 0.
I know why this is the case -- the zero value for integers is, w…
-
https://github.com/asaskevich/govalidator/blob/475eaeb164960a651e97470412a7d3b0c5036105/validator.go#L915
-
See if http://goswagger.io/ and https://github.com/asaskevich/govalidator can be leveraged together to build API documentation that automatically specifies resource routes and data types.