govalidator icon indicating copy to clipboard operation
govalidator copied to clipboard

[Go] Package of validators and sanitizers for strings, numerics, slices and structs

Results 127 govalidator issues
Sort by recently updated
recently updated
newest added

The errors generated by the package include a field name and a path to the field that has failed validating, but they are inconsistent with what the contents of those...

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

when use `ValidateStruct()` function, output error inside array is not valid output message: ``` panic: Items.1.items: non zero value required ``` expected: ``` Items.1.ImpactedTo: non zero value required ``` here...

is duckduckgo.com correct URL. I ask because there so no defined protocol and I think this is a bug.

I have a simple struct, like: ```go type SpannerSlugger struct { Slug string `spanner:"slug" valid:"required"` Name string `spanner:"name" valid:"required"` } ``` and a test like ```ok func TestValidation_Slugs(t *testing.T) {...

bug

Suppose that I have this struct: ``` type PersonUpdateRequest struct { Name *string `json:"name"` Age *int `json:"age"` } ``` This represent a request body of a REST endpoint to PATCH...

not sure if i just set this up incorrectly but it seems like empty strings do not work too well. I expect the following to pass because the property is...

### version go version go1.13.5 darwin/amd64 go test ./... fails

Description ------------ `TestIsExistingEmail` fails for `[email protected]`. Environment ------------- Go version: `go version go1.14 darwin/amd64` Details ------- Still investigating. Might be a duplicate of #369. Started a new issue with a...

Currently, by rolling out our own validators using `CustomTypeValidator` interface, we cannot have a way to return a descriptive error for the validation that failed. Our only choice is to...