fix(deps): update module github.com/danielgtaylor/huma/v2 to v2.39.1 - #3
Open
renovate[bot] wants to merge 1 commit into
Open
fix(deps): update module github.com/danielgtaylor/huma/v2 to v2.39.1#3renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.39.0→v2.39.1Release Notes
danielgtaylor/huma (github.com/danielgtaylor/huma/v2)
v2.39.1Compare 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
WithContextcontext propagation in v2.39.0 copied the response status by value, so middleware that calledWithContextand then readStatus()afternext()always saw0instead 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
[2]Item), not just slices (#1076)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)reflect: reflect.Value.Set using unaddressable valueand resolver mutations are no longer silently discarded (#1082)Stricter
emailanduriFormatsValidation for two string formats is tighter, so payloads that previously passed may now return
422:email/idn-emailaccept an addr-spec only; full mailbox forms with a display name (Name <user@example.com>) are rejecteduri/irirequire an absolute URI with a non-empty scheme, while relative references remain valid underuri-reference/iri-reference(#1068)Validation Robustness
$refduringValidatenow reportsexpected schema $ref to resolve: ...instead of panicking on a nil dereference, covering discriminators andmap[string]any/map[any]anyvalues (#1065)type IDs []int64) are built with their declared element type and validated with item, length, and uniqueness constraints intact (#1074)Other Fixes
HeadersErrornow contribute their headers to the response, matching the handler error path (#1070)What's Changed
New Contributors
Full Changelog: danielgtaylor/huma@v2.39.0...v2.39.1
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.