Release 10.25.0
- Fix postcode_iso3166_alpha2_field validation by @ddevcap in https://github.com/go-playground/validator/pull/1359
- Update README to replace the Travis CI badge with a GitHub Actions badge by @nodivbyzero in https://github.com/go-playground/validator/pull/1362
- chore: using errors.As instead of type assertion by @fatelei in https://github.com/go-playground/validator/pull/1346
- Fix/remove issue template md by @ganeshdipdumbare in https://github.com/go-playground/validator/pull/1375
- feat: Add support for omitting empty and zero values in validation (including nil pointer and empty content of pointer) by @zeewell in https://github.com/go-playground/validator/pull/1289
- @ddevcap made their first contribution in https://github.com/go-playground/validator/pull/1359
- @fatelei made their first contribution in https://github.com/go-playground/validator/pull/1346
- @zeewell made their first contribution in https://github.com/go-playground/validator/pull/1289
Full Changelog: https://github.com/go-playground/validator/compare/v10.24.0...v10.25.0
Release 10.24.0
- MSGV additions by @deankarn in https://github.com/go-playground/validator/pull/1361
The MSGV(Minimum Supported Go Version) has been bumped to v1.20 to address a security issues in the gaoling net
package.
Full Changelog: https://github.com/go-playground/validator/compare/v10.23.0...v10.24.0
Release 10.23.0
- fix: cron validation support for star step value by @cgetzen in https://github.com/go-playground/validator/pull/1302
- doc(oneof): mention 'enum' by @Crocmagnon in https://github.com/go-playground/validator/pull/1326
- Add oneofci validator (oneof case insensitive) by @connorcarnes in https://github.com/go-playground/validator/pull/1321
- feat: add validator for numeric ports by @nodivbyzero in https://github.com/go-playground/validator/pull/1294
- @cgetzen made their first contribution in https://github.com/go-playground/validator/pull/1302
- @Crocmagnon made their first contribution in https://github.com/go-playground/validator/pull/1326
- @connorcarnes made their first contribution in https://github.com/go-playground/validator/pull/1321
Full Changelog: https://github.com/go-playground/validator/compare/v10.22.1...v10.23.0
Release 10.22.1
- fix(#1310): fix excluded_if for pointers by @ganeshdipdumbare in https://github.com/go-playground/validator/pull/1313
- @ganeshdipdumbare made their first contribution in https://github.com/go-playground/validator/pull/1313
Full Changelog: https://github.com/go-playground/validator/compare/v10.22.0...v10.22.1
Release 10.21.0
- MongoDB validator improved by @pixel365 in https://github.com/go-playground/validator/pull/1196
- change codes bool value to struct{} by @nar10z in https://github.com/go-playground/validator/pull/1270
- Fix grammar issues in comments, tests, field names by @alexandear in https://github.com/go-playground/validator/pull/1262
- Make docs for required more explicit regarding boolean values by @alexongh in https://github.com/go-playground/validator/pull/1261
- Fix Japanese translation of max-items, lt-items and lte-items error by @Tomoki108 in https://github.com/go-playground/validator/pull/1250
- chore: fix some comments by @pavedroad in https://github.com/go-playground/validator/pull/1242
- Polish language support by @thinkofher in https://github.com/go-playground/validator/pull/1217
- @pixel365 made their first contribution in https://github.com/go-playground/validator/pull/1196
- @nar10z made their first contribution in https://github.com/go-playground/validator/pull/1270
- @alexongh made their first contribution in https://github.com/go-playground/validator/pull/1261
- @Tomoki108 made their first contribution in https://github.com/go-playground/validator/pull/1250
- @pavedroad made their first contribution in https://github.com/go-playground/validator/pull/1242
- @thinkofher made their first contribution in https://github.com/go-playground/validator/pull/1217
Full Changelog: https://github.com/go-playground/validator/compare/v10.20.0...v10.21.0
Release 10.20.0
- Fix ULID should case-insensitive by @akayj in https://github.com/go-playground/validator/pull/1258
- feat: add base32 validator tag by @jamesatkin-myndup in https://github.com/go-playground/validator/pull/1253
- Add EU countries validator by @masv3971 in https://github.com/go-playground/validator/pull/1252
- @akayj made their first contribution in https://github.com/go-playground/validator/pull/1258
- @jamesatkin-myndup made their first contribution in https://github.com/go-playground/validator/pull/1253
- @masv3971 made their first contribution in https://github.com/go-playground/validator/pull/1252
Full Changelog: https://github.com/go-playground/validator/compare/v10.19.0...v10.20.0
Release 10.19.0
Added opt-in ability to validate private fields in PR, thanks @nikolaianohyn via the new WithPrivateFieldValidation
option when initializing validator.
Release 10.18.0
What Changed?
Updated all dependencies to address dependant alerts, #1205 and #1220
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.