Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-playground/validator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v10.30.2
Choose a base ref
...
head repository: go-playground/validator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v10.30.3
Choose a head ref
  • 20 commits
  • 62 files changed
  • 15 contributors

Commits on Apr 6, 2026

  1. Fix/issue 1550 UUID case insensitive (#1551)

    ## Fixes Or Enhances
    
    Resolves #1550
    
    The `uUIDRegexString` regex only matched lowercase hex digits (a-f),
    causing valid UUIDs containing uppercase letters (e.g.,
    `2830923A-E5F5-4178-9700-787586673E0D`) to fail validation. UUIDs are
    case-insensitive per RFC 4122, so both cases should be accepted.
    
    - Updated `uUIDRegexString` to accept both uppercase and lowercase hex
    characters (a-fA-F), aligning it with the behaviour of
    `uUIDRFC4122RegexString`.
    - Added a test to cover UUID validation with uppercase hex digits.
    - Manually tested against the example in the issue and the expected
    behaviour is now observed.
    
    **Make sure that you've checked the boxes below before you submit PR:**
    - [x] Tests exist or have been written that cover this particular
    change.
    
    @go-playground/validator-maintainers
    leo-jp-edwards authored Apr 6, 2026
    Configuration menu
    Copy the full SHA
    0ccc97b View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2026

  1. Feat: Add NoneOf Validation (#1554)

    ## Fixes Or Enhances
    Addresses issue #1552
    
    **Make sure that you've checked the boxes below before you submit PR:**
    - [x] Tests exist or have been written that cover this particular
    change.
    
    @go-playground/validator-maintainers
    Carmen-Shannon authored Apr 9, 2026
    Configuration menu
    Copy the full SHA
    636bfaa View commit details
    Browse the repository at this point in the history
  2. Add bcp47_strict_language_tag validator (#1489)

    Add strict BCP47 language tag validator enforcing RFC5646 and rejecting
    Unicode extensions unlike language.Parse().
    
    ## Fixes Or Enhances
    
    Fix #1221.
    
    **Make sure that you've checked the boxes below before you submit PR:**
    - [x] Tests exist or have been written that cover this particular
    change.
    
    @go-playground/validator-maintainers
    bfabio authored Apr 9, 2026
    Configuration menu
    Copy the full SHA
    b599053 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2026

  1. chore(deps): bump golang.org/x/text from 0.35.0 to 0.36.0 (#1558)

    Bumps [golang.org/x/text](https://github.com/golang/text) from 0.35.0 to
    0.36.0.
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a
    href="https://github.com/golang/text/commit/8577a70117e110160c45f32af0e0df84eef844f7"><code>8577a70</code></a>
    go.mod: update golang.org/x dependencies</li>
    <li>See full diff in <a
    href="https://github.com/golang/text/compare/v0.35.0...v0.36.0">compare
    view</a></li>
    </ul>
    </details>
    <br />
    
    
    [![Dependabot compatibility
    score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=golang.org/x/text&package-manager=go_modules&previous-version=0.35.0&new-version=0.36.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    
    Dependabot will resolve any conflicts with this PR as long as you don't
    alter it yourself. You can also trigger a rebase manually by commenting
    `@dependabot rebase`.
    
    [//]: # (dependabot-automerge-start)
    [//]: # (dependabot-automerge-end)
    
    ---
    
    <details>
    <summary>Dependabot commands and options</summary>
    <br />
    
    You can trigger Dependabot actions by commenting on this PR:
    - `@dependabot rebase` will rebase this PR
    - `@dependabot recreate` will recreate this PR, overwriting any edits
    that have been made to it
    - `@dependabot show <dependency name> ignore conditions` will show all
    of the ignore conditions of the specified dependency
    - `@dependabot ignore this major version` will close this PR and stop
    Dependabot creating any more for this major version (unless you reopen
    the PR or upgrade to it yourself)
    - `@dependabot ignore this minor version` will close this PR and stop
    Dependabot creating any more for this minor version (unless you reopen
    the PR or upgrade to it yourself)
    - `@dependabot ignore this dependency` will close this PR and stop
    Dependabot creating any more for this dependency (unless you reopen the
    PR or upgrade to it yourself)
    
    
    </details>
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 13, 2026
    Configuration menu
    Copy the full SHA
    06ef944 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad3e048 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2026

  1. Configuration menu
    Copy the full SHA
    2f484d2 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2026

  1. Reduce build size with dead code elimination (#1542)

    Based on discussion in
    [1496](#1496) a
    experimental change to allow reducing the build sizes.
    
    This adds a build tag `validator_novalidatefn` that makes any usage of
    `validateFn` panic. The idea is that we can eliminate calls to
    `tryCallValidateFn` that in turn uses `field.MethodByName` that can't be
    dead code eliminated.
    
    Added a small block for docs, but I am not the best doc writer, so some
    feedback would be welcome there. Maybe something more is needed?
    zemzale authored Apr 20, 2026
    Configuration menu
    Copy the full SHA
    3c25f1d View commit details
    Browse the repository at this point in the history
  2. Refactored out detectFileMIMEType, matchesMIMEType logic for reuse. A…

    …dded standalone isMIMEType validator for flexibility (#1544)
    
    ## Summary
    
    Adds a new built-in `mimetype` validator for file paths.
    
    It supports both exact MIME matches and wildcard subtype matches:
    
    ```go
    validate.Var("photo.png", "mimetype=image/png")
    validate.Var("photo.png", "mimetype=image/*")
    ```
    
    ## Changes
    
    - add `mimetype` as a built-in validation tag
    - extract shared file MIME detection logic
    - refactor `isImage` to reuse the shared MIME detection helper
    - keep `isImage`'s existing explicit image MIME allowlist unchanged
    - add docs and tests for `mimetype`
    - add default translations and translation tests for `mimetype`
    
    ## Notes
    
    `mimetype` accepts:
    
    - `type/subtype`
    - `type/*`
    
    Validation fails if the field is not a string, the file does not exist,
    the path is a directory, the MIME type cannot be detected, or the
    validator param is invalid.
    
    
    
    **Make sure that you've checked the boxes below before you submit PR:**
    - [x] Tests exist or have been written that cover this particular
    change.
    
    @go-playground/validator-maintainers
    dapzthelegend authored Apr 20, 2026
    Configuration menu
    Copy the full SHA
    1c6cd04 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2026

  1. feat(translations): add timezone support for en and ja locales (#1566)

    This PR adds missing translations for the `timezone` validation tag in
    both **English (en)** and **Japanese (ja)** locales.
    
    Previously, the `timezone` tag did not have a localized error message in
    these languages, causing it to fallback to the default tag name. This
    enhancement ensures a better user experience for developers using these
    locales.
    
    ## Changes
    - Added `timezone` translation to  `translations/en/en.go`
    - Added `timezone` translation to `translations/ja/ja.go`
    - Added unit tests for `timezone` translation in
    `translations/en/en_test.go`
    - Added unit tests for `timezone` translation in
    `translations/ja/ja_test.go`
    
    **Make sure that you've checked the boxes below before you submit PR:**
    - [x] Tests exist or have been written that cover this particular
    change.
    
    @go-playground/validator-maintainers
    dedyf5 authored Apr 23, 2026
    Configuration menu
    Copy the full SHA
    ee971fb View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2026

  1. docs: use errors.As in README and translations example (#1563)

    ## Fixes Or Enhances
    
    Closes #743
    
    Replace the `err.(validator.ValidationErrors)` type assertion in the
    README and `_examples/translations/main.go` with `errors.As`, matching
    the pattern already used in `_examples/simple/main.go` and
    `_examples/struct-level/main.go`. `go-errorlint` flags the
    type-assertion form.
    
    **Make sure that you've checked the boxes below before you submit PR:**
    - [x] Tests exist or have been written that cover this particular
    change.
    
    @go-playground/validator-maintainers
    eyupcanakman authored Apr 27, 2026
    Configuration menu
    Copy the full SHA
    6d1d091 View commit details
    Browse the repository at this point in the history
  2. docs: fix typos (#1568)

    rymiyamoto authored Apr 27, 2026
    Configuration menu
    Copy the full SHA
    6fd2fa8 View commit details
    Browse the repository at this point in the history
  3. feat: add origin validator for web origin URLs (#1565)

    ## Fixes Or Enhances
    
    Added `origin` tag for web origin URLs.
    
    
    **Make sure that you've checked the boxes below before you submit PR:**
    - [x] Tests exist or have been written that cover this particular
    change.
    
    @go-playground/validator-maintainers
    
    ---------
    
    Signed-off-by: Ahmed Kamal <[email protected]>
    ahmedkamalio authored Apr 27, 2026
    Configuration menu
    Copy the full SHA
    6bcb7bc View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2026

  1. fix: reject hostnames with trailing hyphen in RFC 952 validator (#1569)

    ## Fixes Or Enhances
    
    Similar to the recent fix #1565 6bcb7bc RFC 952 is now fixed to reject
    hostname labels with trailing hyphen
    
    **Make sure that you've checked the boxes below before you submit PR:**
    - [x] Tests exist or have been written that cover this particular
    change.
    
    @go-playground/validator-maintainers
    
    Signed-off-by: Ahmed Kamal <[email protected]>
    ahmedkamalio authored Apr 29, 2026
    Configuration menu
    Copy the full SHA
    7c334e5 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2026

  1. fix(lint): correctly disable govet inline analyzer & deprecated gomod…

    …guard (#1574)
    
    ## Fixes Or Enhances
    
    - Move `inline` from `linters.disable` to `settings.govet.disable` to
    properly suppress Go 1.24+ false positives regarding `reflect.Ptr`
    constant inlining
    - Disable deprecated `gomodguard` linter to resolve golangci-lint v2
    warnings
    
    Related to:
    https://github.com/go-playground/validator/actions/runs/25698487406/job/75452753081
    ```
    run golangci-lint
      Running [/home/runner/golangci-lint-2.12.2-linux-amd64/golangci-lint config path] in [/home/runner/work/validator/validator] ...
      Running [/home/runner/golangci-lint-2.12.2-linux-amd64/golangci-lint config verify] in [/home/runner/work/validator/validator] ...
      Running [/home/runner/golangci-lint-2.12.2-linux-amd64/golangci-lint run] in [/home/runner/work/validator/validator] ...
      Error: baked_in.go:390:23: inline: Constant reflect.Ptr should be inlined (govet)
      				if elem.Kind() == reflect.Ptr {
      				                  ^
      Error: baked_in.go:409:22: inline: Constant reflect.Ptr should be inlined (govet)
      			if elem.Kind() == reflect.Ptr {
      			                  ^
      Error: baked_in.go:431:20: inline: Constant reflect.Ptr should be inlined (govet)
      			if sf.Kind() == reflect.Ptr {
      			                ^
      3 issues:
      * govet: 3
      
      level=warning msg="The linter 'gomodguard' is deprecated (since v2.12.0) due to: new major version. Replaced by gomodguard_v2."
      level=warning msg="Suggested new configuration:\nlinters:\n  enable:\n    - gomodguard_v2\n"
      
      Error: issues found
      Ran golangci-lint in 19996ms
    
    ```
    
    **Make sure that you've checked the boxes below before you submit PR:**
    - [ ] Tests exist or have been written that cover this particular
    change.
    
    @go-playground/validator-maintainers
    nodivbyzero authored May 18, 2026
    Configuration menu
    Copy the full SHA
    cf37fce View commit details
    Browse the repository at this point in the history
  2. chore(deps): bump golang.org/x/text from 0.36.0 to 0.37.0 (#1572)

    Bumps [golang.org/x/text](https://github.com/golang/text) from 0.36.0 to
    0.37.0.
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a
    href="https://github.com/golang/text/commit/3ef517e623a4bfc08d6457f87d73afda7af7d8e1"><code>3ef517e</code></a>
    go.mod: update golang.org/x dependencies</li>
    <li>See full diff in <a
    href="https://github.com/golang/text/compare/v0.36.0...v0.37.0">compare
    view</a></li>
    </ul>
    </details>
    <br />
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored May 18, 2026
    Configuration menu
    Copy the full SHA
    f7e1721 View commit details
    Browse the repository at this point in the history
  3. chore(deps): bump golang.org/x/crypto from 0.50.0 to 0.51.0 (#1571)

    Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from
    0.50.0 to 0.51.0.
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a
    href="https://github.com/golang/crypto/commit/b8a14a8d65f88c0c79c139171f1354c69a6cdb8a"><code>b8a14a8</code></a>
    go.mod: update golang.org/x dependencies</li>
    <li><a
    href="https://github.com/golang/crypto/commit/9d9d5078968ddb8a279092c665a24e7de4178778"><code>9d9d507</code></a>
    x509roots/fallback/bundle: fix bundle test with Go 1.27+</li>
    <li><a
    href="https://github.com/golang/crypto/commit/fd0b90d21f9ab4b5dd398e9526b570bfea86e370"><code>fd0b90d</code></a>
    acme: include Problem in OrderError.Error</li>
    <li><a
    href="https://github.com/golang/crypto/commit/b9e53593a6073e6a786c49e9ad27956a9b77e54e"><code>b9e5359</code></a>
    pbkdf2: turn into a wrapper for crypto/pbkdf2</li>
    <li><a
    href="https://github.com/golang/crypto/commit/cc0e4fc1d49127130b0d00612a2eeed2ab745d40"><code>cc0e4fc</code></a>
    hkdf: forward Extract to the standard library</li>
    <li><a
    href="https://github.com/golang/crypto/commit/a8e9237a216b050e1b11e041863825104a6811db"><code>a8e9237</code></a>
    x509roots/fallback: update bundle</li>
    <li>See full diff in <a
    href="https://github.com/golang/crypto/compare/v0.50.0...v0.51.0">compare
    view</a></li>
    </ul>
    </details>
    <br />
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored May 18, 2026
    Configuration menu
    Copy the full SHA
    8eb2659 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2026

  1. fix(cron): anchor regex and accept full cron syntax (#1577)

    The cron validator's regex lacked `^...$` anchors, so any string
    containing a cron-like substring (e.g. `"random text @daily more text"`,
    `"prefix @every 1h suffix"`, `"x 1 2 3 4 5 y"`) was accepted as a valid
    cron expression.
    
    Anchoring alone wasn't sufficient — the original field pattern only
    recognized plain numeric forms and was getting away with it via
    substring matching. Several existing positive test cases (`?`, `L`,
    `MON-FRI`, `#`, multi-field expressions with year) only passed because
    the regex matched a numeric fragment of the input. The field pattern is
    now expanded to accept the documented cron alphabet (`*`, `?`, digits,
    letters, `,`, `/`, `-`, `#`, `L`, `W`) while still rejecting bare single
    letters like "x" that aren't valid in any cron dialect.
    
    Negative test cases added to lock in the new behavior, with a note
    documenting remaining false positives that would require a real cron
    parser to reject (out-of-range values, nonsense alphabetic tokens, etc).
    
    - Fixes #1576
    
    ## Fixes Or Enhances
    
    **Make sure that you've checked the boxes below before you submit PR:**
    - [x] Tests exist or have been written that cover this particular
    change.
    
    @go-playground/validator-maintainers
    
    Signed-off-by: Ahmed Kamal <[email protected]>
    ahmedkamalio authored May 25, 2026
    Configuration menu
    Copy the full SHA
    0364541 View commit details
    Browse the repository at this point in the history
  2. chore(deps): bump golang.org/x/crypto from 0.51.0 to 0.52.0 (#1580)

    Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from
    0.51.0 to 0.52.0.
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a
    href="https://github.com/golang/crypto/commit/a1c0d9929856c8aba2b31f079340f00578eda803"><code>a1c0d99</code></a>
    go.mod: update golang.org/x dependencies</li>
    <li><a
    href="https://github.com/golang/crypto/commit/3c7c86938f4541c333d506f719388d9c42d4763d"><code>3c7c869</code></a>
    ssh: fix deadlock on unexpected channel responses</li>
    <li><a
    href="https://github.com/golang/crypto/commit/533fb3f7e4a5ae23f69d1837cd851d35ff5b76ce"><code>533fb3f</code></a>
    ssh: fix source-address critical option bypass</li>
    <li><a
    href="https://github.com/golang/crypto/commit/abbc44d451a6f9236a2bbd26cbcd4d0fec473da3"><code>abbc44d</code></a>
    ssh: fix incorrect operator order</li>
    <li><a
    href="https://github.com/golang/crypto/commit/e052873987615dc96fe67607a9a6adb76311344f"><code>e052873</code></a>
    ssh: fix infinite loop on large channel writes due to integer
    overflow</li>
    <li><a
    href="https://github.com/golang/crypto/commit/b61cf853a89d82cad68da5e12a6beca2116f8456"><code>b61cf85</code></a>
    ssh: enforce user presence verification for security keys</li>
    <li><a
    href="https://github.com/golang/crypto/commit/9c2cd33e8d96a96133fd6ff732510ebba539c2bd"><code>9c2cd33</code></a>
    ssh: enforce strict limits on DSA key parameters</li>
    <li><a
    href="https://github.com/golang/crypto/commit/890731877d85f71cfdc9554e7a27fec4684fc4c4"><code>8907318</code></a>
    ssh: reject RSA keys with excessively large moduli</li>
    <li><a
    href="https://github.com/golang/crypto/commit/ffd87b4878fa98ca2908ec534e1a410bf095a35e"><code>ffd87b4</code></a>
    ssh: fix panic when authority callbacks are nil</li>
    <li><a
    href="https://github.com/golang/crypto/commit/4e7a7384ecbc8d519f6f4c11b36fa9d761fc8946"><code>4e7a738</code></a>
    ssh: fix deadlock on unexpected global responses</li>
    <li>Additional commits viewable in <a
    href="https://github.com/golang/crypto/compare/v0.51.0...v0.52.0">compare
    view</a></li>
    </ul>
    </details>
    <br />
    
    
    [![Dependabot compatibility
    score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=golang.org/x/crypto&package-manager=go_modules&previous-version=0.51.0&new-version=0.52.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    
    Dependabot will resolve any conflicts with this PR as long as you don't
    alter it yourself. You can also trigger a rebase manually by commenting
    `@dependabot rebase`.
    
    [//]: # (dependabot-automerge-start)
    [//]: # (dependabot-automerge-end)
    
    ---
    
    <details>
    <summary>Dependabot commands and options</summary>
    <br />
    
    You can trigger Dependabot actions by commenting on this PR:
    - `@dependabot rebase` will rebase this PR
    - `@dependabot recreate` will recreate this PR, overwriting any edits
    that have been made to it
    - `@dependabot show <dependency name> ignore conditions` will show all
    of the ignore conditions of the specified dependency
    - `@dependabot ignore this major version` will close this PR and stop
    Dependabot creating any more for this major version (unless you reopen
    the PR or upgrade to it yourself)
    - `@dependabot ignore this minor version` will close this PR and stop
    Dependabot creating any more for this minor version (unless you reopen
    the PR or upgrade to it yourself)
    - `@dependabot ignore this dependency` will close this PR and stop
    Dependabot creating any more for this dependency (unless you reopen the
    PR or upgrade to it yourself)
    
    
    </details>
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored May 25, 2026
    Configuration menu
    Copy the full SHA
    5ed0a7e View commit details
    Browse the repository at this point in the history

Commits on May 26, 2026

  1. feat: omit blank tag names from namespace (#1567)

    ## Fixes Or Enhances
    
    When `RegisterTagNameFunc` returns `""` (typically for `json:"-"` or
    equivalent), the field currently falls back to the struct field name in
    error namespaces, defeating the tag-name remapping.
    
    This PR adds the WithTagNameFuncBlankOmit option that preserves the
    blank and omits the field from the error namespace - nested struct
    levels collapse, and leaf field namespaces trim the trailing separator.
    
    Gated behind an option for v10 backward compatibility. According to
    @deankarn this was always meant to be the behaviour (see
    #1426 (comment))
    so I've gone off the assumption this will be the default in v11 and
    followed the example of `WithRequiredStructEnabled`.
    
    **Make sure that you've checked the boxes below before you submit PR:**
    - [x] Tests exist or have been written that cover this particular
    change.
    
    @go-playground/validator-maintainers
    abemedia authored May 26, 2026
    Configuration menu
    Copy the full SHA
    feacb34 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2026

  1. fix(docs): correct ripemd160 tag name in README validation table (#1582)

    ## Summary
    
    The README.md validation table in the Format section has a typo: the
    RIPEMD-160 hash entry incorrectly lists the tag as `ripemd128` instead
    of `ripemd160`.
    
    **Before:**
    ```
    | ripemd128 | RIPEMD-128 hash |
    | ripemd128 | RIPEMD-160 hash |
    ```
    
    **After:**
    ```
    | ripemd128 | RIPEMD-128 hash |
    | ripemd160 | RIPEMD-160 hash |
    ```
    
    The actual tag in
    [`baked_in.go`](https://github.com/go-playground/validator/blob/master/baked_in.go)
    and
    [`regexes.go`](https://github.com/go-playground/validator/blob/master/regexes.go)
    is `ripemd160`, so the README was simply missing the correct tag name.
    
    ## Verification
    
    - Checked `baked_in.go` line 188: `"ripemd160": isRIPEMD160`
    - Checked `regexes.go` line 48: `ripemd160RegexString =
    "^[0-9a-f]{40}$"`
    - Checked `validator_test.go`: both `ripemd128` and `ripemd160` tags are
    tested independently
    
    Co-authored-by: Sediman <[email protected]>
    Sediman
    Sediman AI and Sediman authored May 29, 2026
    Configuration menu
    Copy the full SHA
    ac4c1ba View commit details
    Browse the repository at this point in the history
Loading