Validator Versions Save

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving

v10.20.0

2 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/go-playground/validator/compare/v10.19.0...v10.20.0

v10.19.0

2 months ago

What was added?

Added opt-in ability to validate private fields in PR, thanks @nikolaianohyn via the new WithPrivateFieldValidation option when initializing validator.

v10.18.0

3 months ago

What Changed?

Updated all dependencies to address dependant alerts, #1205 and #1220

v10.17.0

4 months ago

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.

v10.16.0

6 months ago

What's new or fixed?

  • Added new issn validator. 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.Stringer interface support to uuid validations allowing most UUID validation libraries which implement it to work transparently now. TY @JoshGlazebrook for the PR
  • Added new omitnil similar to omitempty but for pointers. this is mainly for code generation ease. TY @tarampampam for the PR

v10.15.5

7 months ago

What was fixed?

Fixed CIDRIPv4 validation, ty @martinlehoux for the PR

v10.15.4

8 months ago

What was fixed?

Corrected a regression of skipping required for time.Time accidentally introduced in v10.15.2

v10.15.3

8 months ago

What was fixed?

Fix regression for invalid type check before calling reflect values type. Thank you @MysteriousPotato for the PR

v10.15.2

8 months ago

What was fixed?

  • Refactored #1122 to support 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.

v10.15.1

9 months ago

What was fixed?

Corrected a few validations including gt, lt, ... when using floating point values, specifically float32, in this PR