Skip to content

chore(deps): Bump github.com/danielgtaylor/huma/v2 from 2.39.0 to 2.39.1 - #39

Merged
grokify merged 1 commit into
mainfrom
dependabot/go_modules/github.com/danielgtaylor/huma/v2-2.39.1
Aug 16, 2026
Merged

grokify merged 1 commit into
mainfrom
dependabot/go_modules/github.com/danielgtaylor/huma/v2-2.39.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/danielgtaylor/huma/v2 from 2.39.0 to 2.39.1.

Release notes

Sourced from github.com/danielgtaylor/huma/v2's releases.

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

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Jul 30, 2026
Bumps [github.com/danielgtaylor/huma/v2](https://github.com/danielgtaylor/huma) from 2.39.0 to 2.39.1.
- [Release notes](https://github.com/danielgtaylor/huma/releases)
- [Commits](danielgtaylor/huma@v2.39.0...v2.39.1)

---
updated-dependencies:
- dependency-name: github.com/danielgtaylor/huma/v2
  dependency-version: 2.39.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/danielgtaylor/huma/v2-2.39.1 branch from d4722a7 to 5c7efaa Compare August 16, 2026 22:15
@grokify
grokify merged commit c33b16b into main Aug 16, 2026
5 of 6 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/danielgtaylor/huma/v2-2.39.1 branch August 16, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant