Releases: oapi-codegen/runtime
Releases · oapi-codegen/runtime
Parameter binding extensions, bug fixes, dependency updates
Notable Changes
The main change in this release is the addition of new Parameter binding and styling functions, which allow the code generator to pass in the type and format from the spec. Previously, we inferred what we wanted to do based on the destination type, however, it's not always possible to decide this without information about the specification.
🚀 New features and improvements
- feat: add BindRawQueryParameter for correct comma handling (#92) @mromaszewicz
- fix: add TypeHint-aware parameter binding and styling for []byte (#97) (#98) @mromaszewicz
- Support array of objects parameters (#40) @danicc097
- Allow BindStyledParameterWithOptions to fill maps (#72) @JoZie
🐛 Bug fixes
- fix: bind Date and Time query params as scalar values (#21) (#93) @mromaszewicz
- fix: support non-indexed deepObject array unmarshaling (#22) (#96) @mromaszewicz
- fix: correct time.Time date-only fallback parsing in deepObject (#95) @mromaszewicz
- Refactor date parsing error handling (#88) @jsnfwlr
- fix: improve email validation using net/mail package (#60) @sniperwolf
- Fix deepObject marshalling losing json number format/precision (#29) @mgabeler-lee-6rs
- Fix issue 55 (#56) @mikhalytch
- fix(deepobject): support nested objects in deepObject arrays (#84) @adrianbrad
👻 Maintenance
- feat(fix): bump gin version (#51) @Gamawn
- Update golang.org/x/crypto to v0.32.0 (#59) @kojustin
- Updated Golang reference to address security vulnerability (#57) @ivan-manzhulin
- Fix linter errors (#85) @mromaszewicz
- build: capture
govulncheckresults as Code Scanning alerts (#80) @jamietanna
📦 Dependency updates
- chore(deps): update release-drafter/release-drafter action to v6 (#31) @renovate[bot]
Sponsors
We would like to thank our sponsors for their support during this release.
v1.1.2: fixes for `map`s and `x-go-type-skip-optional-pointer`
🐛 Bug fixes
- Fix #70: Use %w formatting directives when fmt.Error'ing an error. (#71) @constantoine
- Fix BindQueryParameter for optional parameters (#48) @TelpeNight
- fix: make BindQueryParameter play along with x-go-type-skip-optional-pointer (#47) @swistakm
- fix: correctly handle
maps with different value types when binding (#38) @andnow873
👻 Maintenance
- docs(sponsors): add
FUNDING.yml(#46) @jamietanna - Simplify CI build matrix + build against Go 1.22 (#33) @jamietanna
📦 Dependency updates
Sponsors
We would like to thank our sponsors for their support during this release.
v1.1.1: Dependency updates
📦 Dependency updates
- Update module github.com/labstack/echo/v4 to v4.11.4 (#25) renovate
- Update module github.com/google/uuid to v1.5.0 (#24) renovate
- Update actions/setup-go action to v5 (#23) renovate
- Update transitive markdown parser dependency (#12) @NuVivo314
🔐 Security
- Update transitive markdown parser dependency (#12) @NuVivo314
v1.1.0: Make it possible to configure whether a parameter is required for `BindStyledParameterWithLocation`
🚀 New features and improvements
- Make it possible to configure whether a parameter is required for
BindStyledParameterWithLocation- Via PRs #19 @itpavelkozlov, #20 @deepmap-marcinr and a special shout-out to @renom who first implemented this in #14
👻 Maintenance
- Rename Json to JSON, Http to HTTP (#5) @alexandear
- Onboard to Release Drafter (#18) @jamietanna
📦 Dependency updates
7 changes
- Update module github.com/golangci/golangci-lint to v1.55.2 (#15) @renovate
- Update module github.com/google/uuid to v1.4.0 (#17) @renovate
- Update module github.com/labstack/echo/v4 to v4.11.3 (#13) @renovate
- Update module github.com/golangci/golangci-lint to v1.54.2 (#4) @renovate
- Update actions/checkout action to v4 (#6) @renovate
- Update actions/setup-go action to v4 (#2) @renovate
- Bump Iris (#8) @jamietanna
v1.0.0: Initial release
What's Changed
We migrated from deepmap/oapi-codegen's monorepo to a multirepo setup.
Full Changelog: https://github.com/oapi-codegen/runtime/commits/v1.0.0