- add e164, unique, json, jwt, lowercase, uppercase, datetime, postcode_iso3166_alpha2, postcode_iso3166_alpha2_field
- update ip4_addr, ip6_addr, unix_addr
- remove some empty line to match with en.go (make it easier to compare)
Fixed README.md. Added missing tags.
Fixed function names in comments in baked_in.go.
Fixed error strings in validator_instance.go (should not be
capitalized).
Fixed twice imported assert package in validator_test.go.
fix https://github.com/go-playground/validator/issues/756
Undoes this pr? https://github.com/go-playground/validator/pull/710
Running `go get github.com/go-playground/validator/v10` definitely seems to be the right command. Go getting without the version pulls 9 or just the master. Also importing without the version does not use the current version (v10 at the time of this pr)
Co-authored-by: Dean Karn <Dean.Karn@gmail.com>
* Update yaml and x/crypto to fix security vulnerabilities
* run go mod tidy to add missing go.sum entries
Co-authored-by: Dean Karn <Dean.Karn@gmail.com>
* Implement ValidateMapCtx func for validating map data
* Add ValidateMap func for validating map data with an empty context
* Implement a basic example of ValidateMap method
* Update ValidateMapCtx method, so it can validate nested maps
* Due to changes in ValidateMapCtx, make some updates on ValidateMap method
* Update tests due to changes in ValidateMap method
* Create a basic test for validating nested maps
* Handle error when invalid data is supplied for diving
This fixes an issue where if the param of a time.Durtion type is specified
as an integer, denoting nanosecond precision, instead of time duration
string the validation would panic.
the fixes ensures it falls back to the previous expected behaviour.