v10.30.6
- fix: update the KR and IL postcode patterns to the current national formats by @yu2971512385-ui in https://github.com/go-playground/validator/pull/1644
- fix: accept Taiwan six-digit postcodes by @sb123sb123 in https://github.com/go-playground/validator/pull/1642
- docs: use the registered fieldcontains tag in usage example by @lazerg in https://github.com/go-playground/validator/pull/1635
- fix: fully anchor Costa Rica postcode regex by @sb123sb123 in https://github.com/go-playground/validator/pull/1648
- feat: add duration validator for time.ParseDuration strings by @ahmedkamalio in https://github.com/go-playground/validator/pull/1649
- chore(deps): bump github.com/go-playground/universal-translator from 0.18.1 to 0.18.2 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1653
- feat: Add hostname label validation tag by @KytnaCode in https://github.com/go-playground/validator/pull/1616
- chore(deps): bump github.com/go-playground/locales from 0.14.1 to 0.14.2 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1663
- Align excluded_without with its stated multi-field contract by @dylanpulver in https://github.com/go-playground/validator/pull/1621
- fix: accept Nigeria's 11-character postcodes by @Adeniyikayodee in https://github.com/go-playground/validator/pull/1664
- chore(deps): bump golang.org/x/crypto from 0.57.0 to 0.58.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1670
- ci: send coverage from the Go 1.26.x leg (step skipped since #1535) by @glaziermag in https://github.com/go-playground/validator/pull/1671
- Clarify separators for non-existent directory paths by @yuefdev in https://github.com/go-playground/validator/pull/1672
- Add postcode patterns for IE (Ireland), AL (Albania), GI (Gibraltar) and IL (Israel) by @JohannesHepp in https://github.com/go-playground/validator/pull/1629
- chore(deps): bump github.com/gabriel-vasile/mimetype from 1.4.15 to 1.4.16 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1680
- docs: fix stale alias, uuid and snippet details in package docs by @yxshee in https://github.com/go-playground/validator/pull/1679
- fix: anchor GB and LI postcode patterns as a whole by @beduldul in https://github.com/go-playground/validator/pull/1646
- fix: reject ULIDs outside the 128-bit range by @sergioperezcheco in https://github.com/go-playground/validator/pull/1660
- fix: reject duplicate variants in strict BCP47 tags by @guocn in https://github.com/go-playground/validator/pull/1678
- Convert to time.Time before asserting in isNeField by @youdie006 in https://github.com/go-playground/validator/pull/1619
- Add uuid7 validation tag by @ChrisJr404 in https://github.com/go-playground/validator/pull/1614
- @yu2971512385-ui made their first contribution in https://github.com/go-playground/validator/pull/1644
- @sb123sb123 made their first contribution in https://github.com/go-playground/validator/pull/1642
- @lazerg made their first contribution in https://github.com/go-playground/validator/pull/1635
- @KytnaCode made their first contribution in https://github.com/go-playground/validator/pull/1616
- @dylanpulver made their first contribution in https://github.com/go-playground/validator/pull/1621
- @Adeniyikayodee made their first contribution in https://github.com/go-playground/validator/pull/1664
- @glaziermag made their first contribution in https://github.com/go-playground/validator/pull/1671
- @yuefdev made their first contribution in https://github.com/go-playground/validator/pull/1672
- @JohannesHepp made their first contribution in https://github.com/go-playground/validator/pull/1629
- @yxshee made their first contribution in https://github.com/go-playground/validator/pull/1679
- @beduldul made their first contribution in https://github.com/go-playground/validator/pull/1646
- @sergioperezcheco made their first contribution in https://github.com/go-playground/validator/pull/1660
- @guocn made their first contribution in https://github.com/go-playground/validator/pull/1678
- @youdie006 made their first contribution in https://github.com/go-playground/validator/pull/1619
- @ChrisJr404 made their first contribution in https://github.com/go-playground/validator/pull/1614
Full Changelog: https://github.com/go-playground/validator/compare/v10.30.5...v10.30.6
Release 10.30.5
- fix: allow signed integer fields in port validation by @EJJI0113 in https://github.com/go-playground/validator/pull/1633
- Go 1.27 support by @nodivbyzero in https://github.com/go-playground/validator/pull/1637
- docs: add AI agent attribution requirements to CONTRIBUTING.md by @deankarn in https://github.com/go-playground/validator/pull/1640
- @EJJI0113 made their first contribution in https://github.com/go-playground/validator/pull/1633
Full Changelog: https://github.com/go-playground/validator/compare/v10.30.4...v10.30.5
v10.30.4
- Add English translations for prefix and suffix validators by @morning-verlu in https://github.com/go-playground/validator/pull/1583
- chore(deps): bump golang.org/x/crypto from 0.52.0 to 0.53.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1589
- chore(deps): bump actions/checkout from 6 to 7 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1591
- chore(deps): bump golang.org/x/net from 0.38.0 to 0.55.0 in /_examples/validate_fn by @dependabot[bot] in https://github.com/go-playground/validator/pull/1593
- chore(deps): bump golang.org/x/crypto from 0.53.0 to 0.54.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1598
- chore(deps): bump golang.org/x/crypto from 0.51.0 to 0.52.0 in /_examples/validate_fn by @dependabot[bot] in https://github.com/go-playground/validator/pull/1597
- feat: URN RFC 8141 by @leodido in https://github.com/go-playground/validator/pull/1224
- chore(deps): bump actions/setup-go from 6 to 7 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1601
- chore(deps): bump github.com/leodido/go-urn from 1.4.0 to 1.5.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1606
- chore(deps): bump github.com/gabriel-vasile/mimetype from 1.4.13 to 1.4.15 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1605
- fix(fqdn): enforce maximum DNS name length by @matheusgb in https://github.com/go-playground/validator/pull/1603
- fix: use idiomatic "at most" in English max/lte messages by @snowyukitty in https://github.com/go-playground/validator/pull/1600
- chore(deps): bump golang.org/x/crypto from 0.54.0 to 0.55.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1612
- test: cover startsnotwith/endsnotwith, RegisterStructValidationMapRules, and float32 comparator branches by @nguyenvantuan2391996 in https://github.com/go-playground/validator/pull/1609
- docs: clarify fieldexcludes behavior by @1678092075 in https://github.com/go-playground/validator/pull/1610
- feat(translations): add Armenian translations by @tigran90 in https://github.com/go-playground/validator/pull/1604
- ci: Fix the linter version by @zemzale in https://github.com/go-playground/validator/pull/1617
- @morning-verlu made their first contribution in https://github.com/go-playground/validator/pull/1583
- @matheusgb made their first contribution in https://github.com/go-playground/validator/pull/1603
- @snowyukitty made their first contribution in https://github.com/go-playground/validator/pull/1600
- @nguyenvantuan2391996 made their first contribution in https://github.com/go-playground/validator/pull/1609
- @1678092075 made their first contribution in https://github.com/go-playground/validator/pull/1610
- @tigran90 made their first contribution in https://github.com/go-playground/validator/pull/1604
Full Changelog: https://github.com/go-playground/validator/compare/v10.30.3...v10.30.4
v10.30.3
- Fix/issue 1550 UUID case insensitive by @leo-jp-edwards in https://github.com/go-playground/validator/pull/1551
- Feat: Add NoneOf Validation by @Carmen-Shannon in https://github.com/go-playground/validator/pull/1554
- Add bcp47_strict_language_tag validator by @bfabio in https://github.com/go-playground/validator/pull/1489
- chore(deps): bump golang.org/x/text from 0.35.0 to 0.36.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1558
- chore(deps): bump golang.org/x/crypto from 0.49.0 to 0.50.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1559
- Add CLAUDE.md with repo guidance for Claude Code by @deankarn in https://github.com/go-playground/validator/pull/1564
- Reduce build size with dead code elimination by @zemzale in https://github.com/go-playground/validator/pull/1542
- Refactored out detectFileMIMEType, matchesMIMEType logic for reuse. Added standalone isMIMEType validator for flexibility by @dapzthelegend in https://github.com/go-playground/validator/pull/1544
- feat(translations): add timezone support for en and ja locales by @dedyf5 in https://github.com/go-playground/validator/pull/1566
- docs: use errors.As in README and translations example by @eyupcanakman in https://github.com/go-playground/validator/pull/1563
- docs: fix typos by @rymiyamoto in https://github.com/go-playground/validator/pull/1568
- feat: add origin validator for web origin URLs by @ahmedkamalio in https://github.com/go-playground/validator/pull/1565
- fix: reject hostnames with trailing hyphen in RFC 952 validator by @ahmedkamalio in https://github.com/go-playground/validator/pull/1569
- fix(lint): correctly disable govet inline analyzer & deprecated gomodguard by @nodivbyzero in https://github.com/go-playground/validator/pull/1574
- chore(deps): bump golang.org/x/text from 0.36.0 to 0.37.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1572
- chore(deps): bump golang.org/x/crypto from 0.50.0 to 0.51.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1571
- fix(cron): anchor regex and accept full cron syntax by @ahmedkamalio in https://github.com/go-playground/validator/pull/1577
- chore(deps): bump golang.org/x/crypto from 0.51.0 to 0.52.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1580
- feat: omit blank tag names from namespace by @abemedia in https://github.com/go-playground/validator/pull/1567
- fix(docs): correct ripemd160 tag name in README validation table by @napoleonbot in https://github.com/go-playground/validator/pull/1582
- @leo-jp-edwards made their first contribution in https://github.com/go-playground/validator/pull/1551
- @Carmen-Shannon made their first contribution in https://github.com/go-playground/validator/pull/1554
- @dapzthelegend made their first contribution in https://github.com/go-playground/validator/pull/1544
- @dedyf5 made their first contribution in https://github.com/go-playground/validator/pull/1566
- @eyupcanakman made their first contribution in https://github.com/go-playground/validator/pull/1563
- @rymiyamoto made their first contribution in https://github.com/go-playground/validator/pull/1568
- @abemedia made their first contribution in https://github.com/go-playground/validator/pull/1567
- @napoleonbot made their first contribution in https://github.com/go-playground/validator/pull/1582
Full Changelog: https://github.com/go-playground/validator/compare/v10.30.2...v10.30.3
v10.30.2
- chore(deps): bump golang.org/x/crypto from 0.46.0 to 0.47.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1523
- feat: add translations for alphaspace and alphanumspace tags in indonesian by @savioruz in https://github.com/go-playground/validator/pull/1522
- chore(deps): bump github.com/gabriel-vasile/mimetype from 1.4.12 to 1.4.13 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1526
- feat: add cmyk(color) to validator by @thenicolau in https://github.com/go-playground/validator/pull/1528
- chore(deps): bump golang.org/x/text from 0.33.0 to 0.34.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1534
- chore(deps): bump golang.org/x/crypto from 0.47.0 to 0.48.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1533
- Go 1.26 support by @nodivbyzero in https://github.com/go-playground/validator/pull/1535
- fix: prevent panic in unique validation with nil pointer elements by @nodivbyzero in https://github.com/go-playground/validator/pull/1532
- docs: fix typos by @alexandear in https://github.com/go-playground/validator/pull/1527
- feat: implement ValidatorValuer interface feature by @thommeo in https://github.com/go-playground/validator/pull/1416
- docs: add Valuer interface documentation and example by @wofiporia in https://github.com/go-playground/validator/pull/1540
- chore(deps): bump golang.org/x/text from 0.34.0 to 0.35.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1545
- chore(deps): bump golang.org/x/crypto from 0.48.0 to 0.49.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1546
- feat: add postcode patterns for Colombia (CO) and British Virgin Islands (VG) by @j-ibarra in https://github.com/go-playground/validator/pull/1547
- fix(fqdn): allow hyphens in last domain label by @alihasan070707 in https://github.com/go-playground/validator/pull/1548
- @savioruz made their first contribution in https://github.com/go-playground/validator/pull/1522
- @thenicolau made their first contribution in https://github.com/go-playground/validator/pull/1528
- @thommeo made their first contribution in https://github.com/go-playground/validator/pull/1416
- @wofiporia made their first contribution in https://github.com/go-playground/validator/pull/1540
- @j-ibarra made their first contribution in https://github.com/go-playground/validator/pull/1547
- @alihasan070707 made their first contribution in https://github.com/go-playground/validator/pull/1548
Full Changelog: https://github.com/go-playground/validator/compare/v10.30.1...v10.30.2
Release 10.30.1
- Feat: uds_exists validator by @barash-asenov in https://github.com/go-playground/validator/pull/1482
- fix: Revert min limit of e164 regex by @zemzale in https://github.com/go-playground/validator/pull/1516
- Fix 1513 update ISO 3166-2 codes by @xyz27900 in https://github.com/go-playground/validator/pull/1514
- @barash-asenov made their first contribution in https://github.com/go-playground/validator/pull/1482
- @xyz27900 made their first contribution in https://github.com/go-playground/validator/pull/1514
Full Changelog: https://github.com/go-playground/validator/compare/v10.30.0...v10.30.1
Release 10.30.0
- Bump golang.org/x/crypto from 0.45.0 to 0.46.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1504
- Bump github.com/gabriel-vasile/mimetype from 1.4.11 to 1.4.12 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1505
- docs: document omitzero by @minoritea in https://github.com/go-playground/validator/pull/1509
- fix: add missing translations for alpha validators by @shindonghwi in https://github.com/go-playground/validator/pull/1510
- fix: resolve panic when using aliases with OR operator by @shindonghwi in https://github.com/go-playground/validator/pull/1507
- fix: resolve panic when using cross-field validators with ValidateMap by @shindonghwi in https://github.com/go-playground/validator/pull/1508
- @minoritea made their first contribution in https://github.com/go-playground/validator/pull/1509
- @shindonghwi made their first contribution in https://github.com/go-playground/validator/pull/1510
Full Changelog: https://github.com/go-playground/validator/compare/v10.29.0...v10.30.0
v10.29.0
- fix: minor spelling fix in docs by @Perfect5th in https://github.com/go-playground/validator/pull/1472
- Bump golang.org/x/text from 0.29.0 to 0.30.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1473
- Bump golang.org/x/crypto from 0.42.0 to 0.43.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1474
- Fix integer overflows in test when run on 32bit systems by @gibmat in https://github.com/go-playground/validator/pull/1479
- fix: exclude modernize linter by @nodivbyzero in https://github.com/go-playground/validator/pull/1487
- Bump golangci/golangci-lint-action from 8 to 9 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1490
- Bump github.com/gabriel-vasile/mimetype from 1.4.10 to 1.4.11 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1485
- Support for ISO 9362:2022 BIC (SWIFT) codes by @fira42073 in https://github.com/go-playground/validator/pull/1478
- Bump golang.org/x/crypto from 0.43.0 to 0.44.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1492
- Fix: validation now rejects phone codes starting with +0 by @nodivbyzero in https://github.com/go-playground/validator/pull/1476
- Bump golang.org/x/crypto from 0.44.0 to 0.45.0 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1495
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in https://github.com/go-playground/validator/pull/1497
- fix/1500:Update Sierra Leone currency code from SLL to SLE by @princekm096 in https://github.com/go-playground/validator/pull/1501
- Fix/1481 skip invalid type validations by @KaranLathiya in https://github.com/go-playground/validator/pull/1498
- Fix 1502 update ccy codes by @princekm096 in https://github.com/go-playground/validator/pull/1503
- Added alphanumspace string validator by @haribabuk113 in https://github.com/go-playground/validator/pull/1484
excluded_unlessbug fix by @chargraves85 in https://github.com/go-playground/validator/pull/1307
- @Perfect5th made their first contribution in https://github.com/go-playground/validator/pull/1472
- @gibmat made their first contribution in https://github.com/go-playground/validator/pull/1479
- @fira42073 made their first contribution in https://github.com/go-playground/validator/pull/1478
- @princekm096 made their first contribution in https://github.com/go-playground/validator/pull/1501
- @KaranLathiya made their first contribution in https://github.com/go-playground/validator/pull/1498
- @haribabuk113 made their first contribution in https://github.com/go-playground/validator/pull/1484
- @chargraves85 made their first contribution in https://github.com/go-playground/validator/pull/1307
Full Changelog: https://github.com/go-playground/validator/compare/v10.28.0...v10.29.0
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