Repository navigation
v1.2.0: kin-openapi v0.152.0 dependency update
This is a dependency update release. It moves the required kin-openapi version to v0.152.0, which also raises the minimum for every project using this middleware. It also fixes request bodies being drained before the handler when Options.Prefix is set (#49), thanks to @karlpip.
Behaviour changes that come with kin-openapi v0.150.0 to v0.152.0 and that users may notice:
- JSON request bodies with duplicate member names are rejected when the binary is built with Go 1.27 and its default
encoding/json(this is decided by the toolchain, not by this middleware). - In OpenAPI 3.0 documents, fields placed next to a
$refare ignored, as the specification requires. - Integer parameters are parsed as base 10 only.
spaceDelimitedandpipeDelimitedquery parameters default toexplode: false.openapi3filter.Options.KeepValidatedValueis available for passing throughOptions.Options; it leaves the validated request body value on the request for handlers that can use it.
This release also picks up the kin-openapi security fix from v0.149.0 (GHSA-r277-6w6q-xmqw) for anyone still on an older version.
🐛 Bug fixes
- fix (#49): restore body on clone (#61) @karlpip, @claude, @mromaszewicz
📦 Dependency updates
7 changes
- fix(deps): update module github.com/getkin/kin-openapi to v0.152.0 (#67) @renovate[bot]
- chore(deps): update release-drafter/release-drafter action to v7.10.0 (#63) @renovate[bot]
- chore(deps): update module github.com/golangci/golangci-lint to v2.15.0 (#64) @renovate[bot]
- chore(deps): update oapi-codegen/actions action to v0.9.2 (#65) @renovate[bot]
- fix(deps): update module github.com/labstack/echo/v4 to v4.16.0 (#66) @renovate[bot]
- fix(deps): update module github.com/getkin/kin-openapi to v0.149.0 [security] (#62) @renovate[bot]
- fix(deps): update module github.com/getkin/kin-openapi to v0.143.0 (#59) @renovate[bot]
Sponsors
We would like to thank our sponsors for their support during this release.