:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
Full Changelog: https://github.com/go-playground/validator/compare/v10.19.0...v10.20.0
Added opt-in ability to validate private fields in PR, thanks @nikolaianohyn via the new WithPrivateFieldValidation
option when initializing validator.
issn
validator. TY @mrcook for the PR
fmt.Stringer
interface support to uuid
validations allowing most UUID validation libraries which implement it to work transparently now. TY @JoshGlazebrook for the PR
omitnil
similar to omitempty
but for pointers. this is mainly for code generation ease. TY @tarampampam for the PR
Fix regression for invalid type check before calling reflect values type. Thank you @MysteriousPotato for the PR
or
's in tags + updated to required
behaving the same as before v10.50.0
to support the community as there was a lot of code relying on the before behaviour, correct or not.
Corrected a few validations including gt
, lt
, ... when using floating point values, specifically float32
, in this PR