Skip to content

fix(deps): update module github.com/danielgtaylor/huma/v2 to v2.39.1 - #3

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-danielgtaylor-huma-v2-2.x
Open

fix(deps): update module github.com/danielgtaylor/huma/v2 to v2.39.1#3
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-danielgtaylor-huma-v2-2.x

Conversation

@renovate

@renovate renovate Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/danielgtaylor/huma/v2 v2.39.0v2.39.1 age confidence

Release Notes

danielgtaylor/huma (github.com/danielgtaylor/huma/v2)

v2.39.1

Compare Source

v2.39.1
Overview

A patch release: correctness fixes for resolvers, validation, and response handling, plus a dependency refresh.

Response Status Visible to Middleware Again

WithContext context propagation in v2.39.0 copied the response status by value, so middleware that called WithContext and then read Status() after next() always saw 0 instead of the status the handler set, breaking access logging and telemetry. The status is now shared by every context copy across all adapters, restoring the pre-2.39 invariant while keeping context propagation intact. (#​1081)

Resolvers & Defaults in Arrays and Maps
  • Nested resolvers now run for fixed-size arrays ([2]Item), not just slices (#​1076)
  • A resolver on a named collection type (e.g. type Coords [2]float64) no longer panics, and is no longer conflated with a resolver on its element type, which previously ran the element's resolver twice and the collection's never (#​1082)
  • Values reached through a map are now written back after being walked, so applying a default no longer panics with reflect: reflect.Value.Set using unaddressable value and resolver mutations are no longer silently discarded (#​1082)
Stricter email and uri Formats

Validation for two string formats is tighter, so payloads that previously passed may now return 422:

  • email / idn-email accept an addr-spec only; full mailbox forms with a display name (Name <user@example.com>) are rejected
  • uri / iri require an absolute URI with a non-empty scheme, while relative references remain valid under uri-reference / iri-reference (#​1068)
Validation Robustness
  • An unresolvable schema $ref during Validate now reports expected schema $ref to resolve: ... instead of panicking on a nil dereference, covering discriminators and map[string]any / map[any]any values (#​1065)
  • Named numeric slice parameters (e.g. type IDs []int64) are built with their declared element type and validated with item, length, and uniqueness constraints intact (#​1074)
Other Fixes
  • Resolver errors that wrap a HeadersError now contribute their headers to the response, matching the handler error path (#​1070)
  • A nil interface response body no longer panics in the schema link transformer (#​1072)
  • Dependencies updated (#​1066)
What's Changed
New Contributors

Full Changelog: danielgtaylor/huma@v2.39.0...v2.39.1


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -t ./...
go: github.com/iodesystems/gwag@v0.0.0-00010101000000-000000000000 (replaced by ../gwag): reading ../gwag/go.mod: open /tmp/renovate/repos/github/IodeSystems/gwag/go.mod: no such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants