govalidator
govalidator copied to clipboard
[Go] Package of validators and sanitizers for strings, numerics, slices and structs
### Feature Request Is it possible to use multiple validators on a struct field with "OR" logic? For example the following would mean that `Address` must be either a valid...
### Bug Report | Q | A |------------ | ------ | Version(s) | 11.0.1 #### Summary An email address such as "[email protected]." passes validation. Based on RFC5321, it should not....
The long and complicated regex you are presently using to validate email addresses is way too strict according to the RFC for email addresses. Below is a list of valid...
### Feature Request | Q | A |--------------- | ------ | New Feature | yes | RFC | no | BC Break | no #### Summary I've been thinking in...
| Q | A |-------------- | ------ | Documentation | no | Bugfix | yes | BC Break | no | New Feature | no | RFC | no |...
**Refactored code** :: added the string type to the **URL** constant to make it consistent since all other constants in the group have a type assigned | Q | A...
### Bug Report The following struct: >type S struct { Props map[string]interface{} \`valid:"required"\` } d := S{props: map[string]interface{}{"field": "test"} result, err := valid.ValidateStruct(d) ... With the above code, it gets...
https://en.wikipedia.org/wiki/E.164
After all govalidator is kind of the frontline for any type of input and probably our tests are not perfectly checking for all possible types of input. So maybe adding...
I tried several options: ``` valid:"length(min)=1" valid:"length(min):1" valid:"length(1|255)" valid:"length(1,255)" ``` This never returns any error nor does it catch an empty input. Can someone help me out?