govalidator
govalidator copied to clipboard
[Go] Package of validators and sanitizers for strings, numerics, slices and structs
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 another time. https://github.com/asaskevich/govalidator/blob/f9ffefc3facfbe0caee3fea233cbb6e8208f4541/validator.go#L1205 for example: ```golang package main import ( "fmt" govalidator...
Go 1.12.2 on Fedora Rawhide ``` Testing in: /builddir/build/BUILD/govalidator-f61b66f89f4a311bef65f13e575bcf1a2ffadda6/_build/src PATH: /builddir/build/BUILD/govalidator-f61b66f89f4a311bef65f13e575bcf1a2ffadda6/_build/bin:/builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin GOPATH: /builddir/build/BUILD/govalidator-f61b66f89f4a311bef65f13e575bcf1a2ffadda6/_build:/usr/share/gocode command: go test -buildmode pie -compiler gc -ldflags "-X github.com/asaskevich/govalidator/version.commit=f61b66f89f4a311bef65f13e575bcf1a2ffadda6 -X github.com/asaskevich/govalidator/version=9 -extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld...
IsEmail("[email protected]") fails on App Engine because net.LookupMX("gmail.com") and net.LoopupIP("gmail.com") both return socket: operation not permitted. I haven't been able to produce a fix for this but will instead use plain...
i have a custom struct define like below, is that possible for server field valid success for ip or domain ``` import ( "github.com/asaskevich/govalidator" ) func main() { type Conn...
I was wondering because, it seems there is not much activity on the repository with several issues and pull requests on pending.
Validating struct using the tags does not work as expected for the parameterized validator. Parent Struct ```Go package pmodels // Notification represents a notification. type Notification struct { Recipients []Recipient...
Basic File Validation missing? "Image, Mp4, Mp3" etc.,
When i use this library to verify if a user it's password is strong enough using the custom type tag it returns the password of that user in the error...
I would be interested to learn where within the RFC3986 specification, a "dot" at the end of the TLD is detailed as allowed. ``` // https://github.com/asaskevich/govalidator/blob/master/patterns.go#L40 govalidator.IsURL("https://example.com.") evaluates to true,...
### Bug When a type nested inside a slice is being validated the field name that gets attached to the error is sometimes incorrect. When the parent field is given...