Repository navigation
Comparing changes
Open a pull request
base repository: danielgtaylor/huma
base: v2.39.0
head repository: danielgtaylor/huma
compare: v2.39.1
- 9 commits
- 25 files changed
- 6 contributors
Commits on Jul 17, 2026
-
fix: do not panic on unresolved schema $ref during Validate (#1065)
* fix: do not panic on unresolved schema $ref during Validate * test: cover discriminator and map[any]any unresolved ref branches * test: move unresolved ref tests into validate_test.go * refactor: hoist nil schema check out of ref-resolution loop --------- Co-authored-by: baiyuxi930826 <[email protected]> Co-authored-by: Robert Thomas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e114668 - Browse repository at this point
Copy the full SHA e114668View commit details -
Configuration menu - View commit details
-
Copy full SHA for bba0d54 - Browse repository at this point
Copy the full SHA bba0d54View commit details
Commits on Jul 19, 2026
-
fix: tighten format email and uri validation (#1068)
Co-authored-by: AgentSmithClaw <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 14aea2f - Browse repository at this point
Copy the full SHA 14aea2fView commit details
Commits on Jul 22, 2026
-
fix: preserve wrapped resolver error metadata (#1070)
* fix: preserve wrapped resolver error metadata * refactor: extract appendErrorHeaders helper for resolver and handler paths --------- Co-authored-by: Robert Thomas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b659c74 - Browse repository at this point
Copy the full SHA b659c74View commit details -
fix: handle nil interface response bodies (#1072)
* fix: handle nil interface response bodies * chore: additional regression guard Co-authored-by: Copilot Autofix powered by AI <[email protected]> --------- Co-authored-by: Robert Thomas <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ac9959c - Browse repository at this point
Copy the full SHA ac9959cView commit details -
fix: parse named numeric slice parameters (#1074)
molly authoredJul 22, 2026 Configuration menu - View commit details
-
Copy full SHA for 22a3cb0 - Browse repository at this point
Copy the full SHA 22a3cb0View commit details
Commits on Jul 28, 2026
-
fix: share response status across WithContext copies (#1081)
* fix: share response status across WithContext copies huma.WithContext delegates to the adapter's WithContext, which returns a new adapter context. Copying the status field by value forked per-request mutable state, so a middleware that called WithContext and then read Status() after next() always saw 0 rather than the status the handler set. Since a middleware can't know whether anything downstream forks again, there was no reliable way to observe the final status, breaking access logging and telemetry. Store the status behind a pointer shared by every copy, restoring the pre-2.39 invariant while keeping the context propagation into the underlying request. Tests assert the status is visible from the pre-fork context across all adapters. * chore: update example dependencies
Configuration menu - View commit details
-
Copy full SHA for 85aad8f - Browse repository at this point
Copy the full SHA 85aad8fView commit details
Commits on Jul 29, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 5961f0a - Browse repository at this point
Copy the full SHA 5961f0aView commit details -
fix: distinguish collection and element matches when walking input (#…
…1082) Resolvers and defaults are found by walking the input type and recording a path to each match. A path to a match on a collection's own type, e.g. a resolver on `type Coords [2]float64`, was indistinguishable from a path to a match on its element type, so `everyPB` guessed by kind: collections were always treated as containers to walk through. Now that fixed arrays are walked too, that guess turned a resolver on a named array type into a panic, and it was already wrong when a collection and its element both had resolvers, running the element's twice and the collection's never. Record a marker step in the path when descending into a collection's elements so both cases are exact, and drop the kind-based guess. Values reached through a map were also visited as copies, which panicked with `reflect: reflect.Value.Set using unaddressable value` when a default was applied and silently discarded resolver mutations. Copy the value out, walk it, then write it back with `SetMapIndex`.
Configuration menu - View commit details
-
Copy full SHA for 198225e - Browse repository at this point
Copy the full SHA 198225eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v2.39.0...v2.39.1