Skip to content

v1.2.0: kin-openapi v0.152.0 dependency update

Choose a tag to compare

@github-actions github-actions released this 23 Oct 04:03
· 5 commits to main since this release
d033a0b

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 $ref are ignored, as the specification requires.
  • Integer parameters are parsed as base 10 only.
  • spaceDelimited and pipeDelimited query parameters default to explode: false.
  • openapi3filter.Options.KeepValidatedValue is available for passing through Options.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

📦 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.

DevZero logo

Cybozu logo

New contributors