Sourced from github.com/danielgtaylor/huma/v2's releases.
v2.37.2
Overview
This bugfix release fixes an issue with how form data was being documented in OpenAPI.
This also fixes embedded objects with valid JSON tags being incorrectly embedded in the OpenAPI docs.
What's Changed
- Don't embed embedded objects with valid JSON tags by
@wolveixin danielgtaylor/huma#978- Fix OpenAPI path prefix regression from $schema fix PR by
@wolveixin danielgtaylor/huma#979- Fix form param doc regression by
@wolveixin danielgtaylor/huma#981Full Changelog: https://github.com/danielgtaylor/huma/compare/v2.37.1...v2.37.2
v2.37.1
Overview
This bugfix release fixes an issue regarding the Swagger UI docs renderer, as well as fixes an issue preventing Groups from using the configurable options released in v2.37.1.
This also brings interface constructors to
humamux.What's Changed
- Export Gorilla Mux interface constructors by
@RangelRealein danielgtaylor/huma#965- fix(api): use proper CSP hash for inline script in Swagger doc renderer by
@leonklingelein danielgtaylor/huma#977- fix(group): ensure "Group" satisfies the configProvider interface by
@leonklingelein danielgtaylor/huma#976Full Changelog: https://github.com/danielgtaylor/huma/compare/v2.37.0...v2.37.1
v2.37.0
Overview
Dropped Explicit IDN-Hostname Validation
This validation unintentionally imported an external library to the base Huma library. Since this was not a requested feature, it has been removed for now. The
idn-hostnameformat value has become an alias forhostnamein the meantime.Operation ID Normalization
Spaces in operation IDs get automatically converted to hyphens now.
Optimizations & Fixed Memory Leak
Various internal operations have been optimized (~7% overall improvement): danielgtaylor/huma#973
A memory leak when using
MultipartFormFileshas been resolved.New Configurable Options
Allow Additional Properties By Default
A new config option has been added to allow additional properties by default. This can be set in the API config.
config.AllowAdditionalPropertiesByDefault = true
... (truncated)
887f7d4
Fix form param doc regression (#981)f02efeb
Fix OpenAPI path prefix regression from $schema fix PR (#979)cbf60b6
Don't embed embedded objects with valid JSON tags (#978)6d0295c
fix(group): ensure "Group" satisfies the configProvider
interface (#976)07ca6c5
fix(api): use proper CSP hash for inline script in Swagger doc renderer
(#977)58edcf2
Export humamux constructors (#965)6c29f67
chore(api,docs): update unpkg libraries, specify SRI hash, add strict
CSP (#916)3aee9bd
Additional docs + normalize operation IDs (#974)e31a819
Resource optimizations, Go 1.25, remove IDNA library, add benchmark CI
(#973)ddbb810
Implement Registry and Query Validation Options (#925)