Sourced from github.com/danielgtaylor/huma/v2's releases.
v2.35.0
Overview
Moved this release as it was incorrectly tagged as v2.34.3.
Improved Error Messaging for Form Pointers
Pointer panic messages now explicitly include “Form” where applicable, making debugging clearer and resolving #892.
Expanded String Format Support
Added support for
durationandidn-hostnamestring formats, improving schema expressiveness and validation coverage.Header Parsing Fix
Fixed several subtle issues in header detection that occurred when output fields were slices, arrays, or maps, which could cause headers (notably []*http.Cookie) to be incorrectly applied or documented. The parsing logic now correctly inspects the root type of collection fields and adds support for hidden headers, allowing them to be excluded from generated OpenAPI documentation. These changes resolve multiple long-standing documentation and serialization bugs without introducing new behavior.
What's Changed
- fix: include “Form” in pointer panic message (fixes #892) by
@wolveixin danielgtaylor/huma#938- feat: support duration and IDN-hostname string formats by
@wolveixin danielgtaylor/huma#939- docs: add simple HTML docs by
@wolveixin danielgtaylor/huma#941- fix: header parsing by
@wolveixin danielgtaylor/huma#944- perf(schema): optimize convertType with fast paths for compatible types by
@baagodin danielgtaylor/huma#931- Added exhaustive error code wrappers by
@rhodeonin danielgtaylor/huma#876New Contributors
@baagodmade their first contribution in danielgtaylor/huma#931@rhodeonmade their first contribution in danielgtaylor/huma#876Full Changelog: https://github.com/danielgtaylor/huma/compare/v2.34.2...v2.34.3
v2.34.2
Overview
TLS-Aware URL Scheme Detection
Huma now correctly uses the
httpsURL scheme when TLS is configured, andhttpwhen it is not. Previously, the scheme detection could be incorrect in certain scenarios.Time Wrapper Parsing Fix
Fixed an issue where time wrapper types failed to parse correctly, resolving #844.
What's Changed
- fix: correct example format for tags in Pet struct by
@vikyw89in danielgtaylor/huma#858- docs: add links to hire me by
@danielgtaylorin danielgtaylor/huma#869- Revert "docs: add links to hire me" by
@danielgtaylorin danielgtaylor/huma#890- chore(deps): bump github.com/gofiber/fiber/v2 from 2.52.7 to 2.52.9 by
@dependabot[bot] in danielgtaylor/huma#882- Fix code samples in the response output documentation by
@prnvbnin danielgtaylor/huma#927- fix: use "http" URL scheme only if no TLS is used by
@leonklingelein danielgtaylor/huma#905- fix: failed to parse time wrapper, close #844 by
@zhenzouin danielgtaylor/huma#924- Minor linting/formatting by
@wolveixin danielgtaylor/huma#936New Contributors
@vikyw89made their first contribution in danielgtaylor/huma#858@prnvbnmade their first contribution in danielgtaylor/huma#927
... (truncated)
c24cd07
Added wrappers for the remaining error codes defined in the standard
library....b4a4ec8
perf(schema): optimize convertType with fast paths for compatible types
(#931)88c6cda
Fix Header Parsing (#944)0814e6f
Simple HTML docs (#941)1cd5c26
Support Duration and IDN-Hostname String Formats (#939)e78584e
Include form in pointer panic message (#938)0279842
Minor linting/formatting (#936)f30901c
fix: failed to parse time wrapper, close #844
(#924)57b3625
fix: use "http" URL scheme only if no TLS is used (#905)1f43b55
Merge pull request #927
from prnvbn/patch-1