Release 10.28.0
- Update workflow.yml to support 2 most recent major versions by @nodivbyzero in https://github.com/go-playground/validator/pull/1417
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1456
- Go 1.25 support by @nodivbyzero in https://github.com/go-playground/validator/pull/1459
- Bump github.com/gabriel-vasile/mimetype from 1.4.8 to 1.4.10 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1463
- Bump golang.org/x/text from 0.22.0 to 0.29.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1464
- Bump actions/setup-go from 5 to 6 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1465
- Bump golang.org/x/crypto from 0.33.0 to 0.42.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1467
- fix: should panic when define duplicate field param in
required_ifby @duyquang6 in https://github.com/go-playground/validator/pull/1468 - Fixed missing keys from returned errors in map validation by @gelozr in https://github.com/go-playground/validator/pull/1284
- Added https_url tag by @ahmedkamalio in https://github.com/go-playground/validator/pull/1461
- docs: add description for 'port' validator by @nodivbyzero in https://github.com/go-playground/validator/pull/1435
- Add alphaspace validator by @takaaa220 in https://github.com/go-playground/validator/pull/1343
- @duyquang6 made their first contribution in https://github.com/go-playground/validator/pull/1468
- @gelozr made their first contribution in https://github.com/go-playground/validator/pull/1284
- @ahmedkamalio made their first contribution in https://github.com/go-playground/validator/pull/1461
- @takaaa220 made their first contribution in https://github.com/go-playground/validator/pull/1343
Full Changelog: https://github.com/go-playground/validator/compare/v10.27.0...v10.28.0
Release 10.27.0
- Fix Release version badge on README page by @nodivbyzero in https://github.com/go-playground/validator/pull/1406
- fix russian E.164 error message by @prigornitskiy in https://github.com/go-playground/validator/pull/1349
- chore: remove unnecessary statement by @qshuai in https://github.com/go-playground/validator/pull/1200
- Re-enable several linters by @nodivbyzero in https://github.com/go-playground/validator/pull/1412
- add support to tag validateFn by @peczenyj in https://github.com/go-playground/validator/pull/1363
- Bump golang.org/x/crypto from 0.33.0 to 0.35.0 in /_examples/validate_fn by @dependabot in https://github.com/go-playground/validator/pull/1418
- Bump golang.org/x/net from 0.34.0 to 0.38.0 in /_examples/validate_fn by @dependabot in https://github.com/go-playground/validator/pull/1419
- Align required_without with the contract stated in the documentation by @jmfrees in https://github.com/go-playground/validator/pull/1422
- Add translation example by @cxlblm in https://github.com/go-playground/validator/pull/1394
- doc(errors): mention RegisterTagNameFunc for FieldError.Field by @khan-ajamal in https://github.com/go-playground/validator/pull/1358
- Bump golangci/golangci-lint-action from 7 to 8 by @dependabot in https://github.com/go-playground/validator/pull/1425
- feat(translation): add en translation for urn_rfc2141 by @ryanmalesic in https://github.com/go-playground/validator/pull/1431
- fix: panics when private field is validated by @ykalchevskiy in https://github.com/go-playground/validator/pull/1423
- Fix: support validation for map values with struct types by @JunaidIslam2105 in https://github.com/go-playground/validator/pull/1433
- Omitzero does not work with slice and map bug by @JunaidIslam2105 in https://github.com/go-playground/validator/pull/1436
- Fix: Validator panics when 'nil' is used along with required if for slices and maps by @JunaidIslam2105 in https://github.com/go-playground/validator/pull/1442
- docs: typos by @eqsdxr in https://github.com/go-playground/validator/pull/1440
- fix: make "file://" fail
urlvalidation by @bfabio in https://github.com/go-playground/validator/pull/1444 - disable way too aggressive and disagreeable linters by @deankarn in https://github.com/go-playground/validator/pull/1445
- use golangci lint file for disables by @deankarn in https://github.com/go-playground/validator/pull/1447
- @prigornitskiy made their first contribution in https://github.com/go-playground/validator/pull/1349
- @qshuai made their first contribution in https://github.com/go-playground/validator/pull/1200
- @peczenyj made their first contribution in https://github.com/go-playground/validator/pull/1363
- @jmfrees made their first contribution in https://github.com/go-playground/validator/pull/1422
- @cxlblm made their first contribution in https://github.com/go-playground/validator/pull/1394
- @khan-ajamal made their first contribution in https://github.com/go-playground/validator/pull/1358
- @ryanmalesic made their first contribution in https://github.com/go-playground/validator/pull/1431
- @ykalchevskiy made their first contribution in https://github.com/go-playground/validator/pull/1423
- @JunaidIslam2105 made their first contribution in https://github.com/go-playground/validator/pull/1433
- @eqsdxr made their first contribution in https://github.com/go-playground/validator/pull/1440
- @bfabio made their first contribution in https://github.com/go-playground/validator/pull/1444
Full Changelog: https://github.com/go-playground/validator/compare/v10.26.0...v10.27.0
v10.26.0
- Use correct pointer in errors.As(). Fix "panic: errors: *target must be interface or implement error" in examples. by @antonsoroko in https://github.com/go-playground/validator/pull/1378
- Create dependabot by @nodivbyzero in https://github.com/go-playground/validator/pull/1373
- Bump golangci/golangci-lint-action from 4 to 6 by @dependabot in https://github.com/go-playground/validator/pull/1381
- Bump golang.org/x/text from 0.21.0 to 0.22.0 by @dependabot in https://github.com/go-playground/validator/pull/1383
- Bump golang.org/x/crypto from 0.32.0 to 0.33.0 by @dependabot in https://github.com/go-playground/validator/pull/1382
- feat(translations): improve Indonesian translations and add tests by @fathiraz in https://github.com/go-playground/validator/pull/1376
- Fix time.Duration translation error by @nodivbyzero in https://github.com/go-playground/validator/pull/1154
- Update Project Status button by @nodivbyzero in https://github.com/go-playground/validator/pull/1380
- Remove gitter.im link from README.md by @nodivbyzero in https://github.com/go-playground/validator/pull/1366
- Docs: fix
Base64RawURLusage by @196Ikuchil in https://github.com/go-playground/validator/pull/1336 - Fix length check on dns_rfc1035_label tag by @KimNorgaard in https://github.com/go-playground/validator/pull/1214
- Add Korean by @jkh0kr in https://github.com/go-playground/validator/pull/1338
- add german translations by @max-weis in https://github.com/go-playground/validator/pull/1322
- Update workflow to support the last three Go versions by @nodivbyzero in https://github.com/go-playground/validator/pull/1393
- Fix: Nil pointer dereference in Arabic translations by @BlackSud0 in https://github.com/go-playground/validator/pull/1391
- Translate to thai by @maetad in https://github.com/go-playground/validator/pull/1202
- Feat: add EIN validation by @henrriusdev in https://github.com/go-playground/validator/pull/1384
- Fix reference to parameter name in docs by @yegvla in https://github.com/go-playground/validator/pull/1400
- use mail.ParseAddress to cover missing email validations by @eladb2011 in https://github.com/go-playground/validator/pull/1395
- Update linter to v2.0.2 by @nodivbyzero in https://github.com/go-playground/validator/pull/1405
- @antonsoroko made their first contribution in https://github.com/go-playground/validator/pull/1378
- @dependabot made their first contribution in https://github.com/go-playground/validator/pull/1381
- @fathiraz made their first contribution in https://github.com/go-playground/validator/pull/1376
- @196Ikuchil made their first contribution in https://github.com/go-playground/validator/pull/1336
- @KimNorgaard made their first contribution in https://github.com/go-playground/validator/pull/1214
- @jkh0kr made their first contribution in https://github.com/go-playground/validator/pull/1338
- @max-weis made their first contribution in https://github.com/go-playground/validator/pull/1322
- @BlackSud0 made their first contribution in https://github.com/go-playground/validator/pull/1391
- @maetad made their first contribution in https://github.com/go-playground/validator/pull/1202
- @henrriusdev made their first contribution in https://github.com/go-playground/validator/pull/1384
- @yegvla made their first contribution in https://github.com/go-playground/validator/pull/1400
- @eladb2011 made their first contribution in https://github.com/go-playground/validator/pull/1395
Full Changelog: https://github.com/go-playground/validator/compare/v10.25.0...v10.26.0
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