Releases: go-playground/validator
Releases · go-playground/validator
Release 10.19.0
What was added?
Added opt-in ability to validate private fields in PR, thanks @nikolaianohyn via the new WithPrivateFieldValidation option when initializing validator.
Release 10.18.0
Release 10.17.0
What's new
- Add translation of requiredXXX and excludedXXX in English/Chinese/Chinese Taiwan.
What's fixed
- Fix errors translation to work properly for aliases.
Release 10.16.0
What's new or fixed?
- Added new
issnvalidator. TY @mrcook for the PR - Added improvement/fix to the file url validation. TY @nodivbyzero for the PR
- Fix onof tag in examples. TY @gren236 for the PR
- Add
fmt.Stringerinterface support touuidvalidations allowing most UUID validation libraries which implement it to work transparently now. TY @JoshGlazebrook for the PR - Added new
omitnilsimilar toomitemptybut for pointers. this is mainly for code generation ease. TY @tarampampam for the PR
Release 10.15.5
What was fixed?
Fixed CIDRIPv4 validation, ty @martinlehoux for the PR
Release 10.15.4
What was fixed?
Corrected a regression of skipping required for time.Time accidentally introduced in v10.15.2
Release 10.15.3
What was fixed?
Fix regression for invalid type check before calling reflect values type. Thank you @MysteriousPotato for the PR
Release 10.15.2
What was fixed?
- Refactored #1122 to support
or's in tags + updated torequiredbehaving the same as beforev10.50.0to support the community as there was a lot of code relying on the before behaviour, correct or not.- Added a way to opt-in to the new functionality, which is recommended, using WithRequiredStructEnabled
Release 10.15.1
What was fixed?
Corrected a few validations including gt, lt, ... when using floating point values, specifically float32, in this PR
Release 10.15.0
What's new?
- Applying
tagvalidations onstructsis now a reality thank to @MysteriousPotato in this PR - Added
oneoftag to examples in this PR - Added
Spice DBvalidations in this PR