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: danielgtaylor/huma
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.39.0
Choose a base ref
...
head repository: danielgtaylor/huma
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.39.1
Choose a head ref
  • 9 commits
  • 25 files changed
  • 6 contributors

Commits on Jul 17, 2026

  1. 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]>
    3 people authored Jul 17, 2026
    Configuration menu
    Copy the full SHA
    e114668 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bba0d54 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2026

  1. fix: tighten format email and uri validation (#1068)

    Co-authored-by: AgentSmithClaw <[email protected]>
    baiyuxi930826 and AgentSmithClaw authored Jul 19, 2026
    Configuration menu
    Copy the full SHA
    14aea2f View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2026

  1. 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]>
    molly and robtme authored Jul 22, 2026
    Configuration menu
    Copy the full SHA
    b659c74 View commit details
    Browse the repository at this point in the history
  2. 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]>
    3 people authored Jul 22, 2026
    Configuration menu
    Copy the full SHA
    ac9959c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    22a3cb0 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2026

  1. 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
    robtme authored Jul 28, 2026
    Configuration menu
    Copy the full SHA
    85aad8f View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2026

  1. Configuration menu
    Copy the full SHA
    5961f0a View commit details
    Browse the repository at this point in the history
  2. 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`.
    robtme authored Jul 29, 2026
    Configuration menu
    Copy the full SHA
    198225e View commit details
    Browse the repository at this point in the history
Loading