govalidator icon indicating copy to clipboard operation
govalidator copied to clipboard

Validate Golang request data with simple rules. Highly inspired by Laravel's request validation.

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

Govalidator throws an error ```error The content field file mime type/subtype is invalid ``` if we do not provide **type** of the mime followed by **/** in MapData

this function will help you to convert fasthttp and gofiber context to a http/net request so that fasthttp and gofiber users can also utilize this package

govalidator.MapData { username : []string{"regex:\\\S+"} } This rule is not throwing an error and accepts username with spaces in between.

go get error,error info is ..\pkg\mod\github.com\thedevsaddam\[email protected]\rules.go:899:7: constant -9223372036854775808 overflows int ..\pkg\mod\github.com\thedevsaddam\[email protected]\rules.go:908:7: constant 9223372036854775807 overflows int go version is 1.17.11 or 1.17.10

Hello, Thanks for the great package. the docs say only one file validation is supported. Are there plans for doing multiple file validations for fields that have multiple files? If...

Looks like for some use-cases govalidator tries to unmarshal request body fields into Go struct fields before running validation. I have a struct: ``type S struct { Foo bool `json:"foo"`...

Current longitude and latitude validator only accepts 6 digits after decimal point, the regex pattern was changed to fix this issue. related to: #98

Around 2-3 months back I was able to validate float value in a given range, but today I was trying to check the float value and its returning `The FIELD_VALUE...

how to make confirm password validation in custom role ? how to access anther filed pram in custom role ?