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-hostname format value has become an alias for hostname in 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): #973 (comment)
A memory leak when using MultipartFormFiles has 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 = trueFields Optional By Default
A new config option has been added to set fields to optional by default, rather than required by default. This can be set in the API config.
config.FieldsOptionalByDefault = trueStrict Query Parameters
A new config option has been added to forcibly reject unknown query parameters. This can be set in the API config, or per-operation.
config.RejectUnknownQueryParameters = trueFramework & Dependency Updates
- Upgraded to Go 1.25
What's Changed
- chore(registry): drop random suffix out of variable name by @leonklingele in #972
- Implement Registry and Query Validation Options by @wolveix in #925
- Resource optimizations, Go 1.25, remove IDNA library, add benchmark CI by @wolveix in #973
- Additional docs + normalize operation IDs by @wolveix in #974
- chore(api,docs): update unpkg libraries, specify SRI hash, add strict CSP by @leonklingele in #916
Full Changelog: v2.36.0...v2.37.0