Skip to content

Update module github.com/oapi-codegen/echo-middleware to v1.2.1 - #259

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/github.com-oapi-codegen-echo-middleware-1.x
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/github.com-oapi-codegen-echo-middleware-1.x

Conversation

@renovate

@renovate renovate Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/oapi-codegen/echo-middleware v1.0.2 → v1.2.1 age confidence

Release Notes

oapi-codegen/echo-middleware (github.com/oapi-codegen/echo-middleware)

v1.2.1: : keep the validated request body value by default

Compare Source

This release enables openapi3filter.Options.KeepValidatedValue by default. It was meant to ship in v1.2.0 together with the kin-openapi v0.152.0 update, but was merged after that release was published.

With it on, the validator leaves the request body readable exactly as before and additionally keeps the decoded, validated JSON value on the body, reachable through its ValidatedValue() any method. Upcoming oapi-codegen strict server templates use this to bind the value that was actually validated instead of decoding the body a second time, which closes the gap described in oapi-codegen/oapi-codegen#2605 (encoding/json matches member names case-insensitively, so a second decode can pick up a member the validator never saw).

Handlers that read the body see no difference. The only costs are that the decoded value stays in memory for the lifetime of the request, and that the body no longer implements optional interfaces such as io.WriterTo.

To opt out, set DiscardValidatedValue: true in this middleware's Options. This setting overrides KeepValidatedValue in the embedded openapi3filter.Options. Middleware that replaces the request body must run before the validator, otherwise the validated value is lost.

🚀 New features and improvements

Sponsors

We would like to thank our sponsors for their support during this release.

DevZero logo

Cybozu logo

New contributors

  • No new contributors

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

Compare Source

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

Sponsors

We would like to thank our sponsors for their support during this release.

DevZero logo

Cybozu logo

New contributors

v1.1.0: OpenAPI 3.1, Go 1.25

Compare Source

This release bumps the required Go version to 1.25, and pulls in a version of kin-openapi which can validate OpenAPI 3.1 specifications.

🎉 Notable changes

🐛 Bug fixes

📝 Documentation updates

👻 Maintenance

📦 Dependency updates

Sponsors

We would like to thank our sponsors for their support during this release.

DevZero logo

Cybozu logo


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 17 additional dependencies were updated

Details:

Package Change
github.com/getkin/kin-openapi v0.133.0 -> v0.152.0
github.com/labstack/echo/v4 v4.15.1 -> v4.16.0
github.com/go-openapi/jsonpointer v0.21.2 -> v1.0.0
github.com/labstack/gommon v0.4.2 -> v0.5.0
github.com/mattn/go-colorable v0.1.14 -> v0.1.15
github.com/mattn/go-isatty v0.0.20 -> v0.0.23
github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037 -> v0.1.1
github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90 -> v0.0.14
golang.org/x/crypto v0.49.0 -> v0.54.0
golang.org/x/mod v0.33.0 -> v0.37.0
golang.org/x/net v0.52.0 -> v0.57.0
golang.org/x/sync v0.20.0 -> v0.22.0
golang.org/x/sys v0.42.0 -> v0.47.0
golang.org/x/term v0.41.0 -> v0.45.0
golang.org/x/text v0.35.0 -> v0.40.0
golang.org/x/time v0.14.0 -> v0.15.0
golang.org/x/tools v0.42.0 -> v0.47.0

@renovate renovate Bot added the dependency label Jul 19, 2026
@renovate renovate Bot changed the title Update module github.com/oapi-codegen/echo-middleware to v1.1.0 Update module github.com/oapi-codegen/echo-middleware to v1.1.0 - autoclosed Aug 16, 2026
@renovate renovate Bot closed this Aug 16, 2026
@renovate
renovate Bot deleted the renovate/github.com-oapi-codegen-echo-middleware-1.x branch August 16, 2026 21:27
@renovate renovate Bot changed the title Update module github.com/oapi-codegen/echo-middleware to v1.1.0 - autoclosed Update module github.com/oapi-codegen/echo-middleware to v1.1.0 Aug 17, 2026
@renovate renovate Bot reopened this Aug 17, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-echo-middleware-1.x branch 2 times, most recently from 2cb8c3e to cde9a24 Compare August 17, 2026 01:43
@renovate renovate Bot changed the title Update module github.com/oapi-codegen/echo-middleware to v1.1.0 Update module github.com/oapi-codegen/echo-middleware to v1.1.0 - autoclosed Aug 29, 2026
@renovate renovate Bot closed this Aug 29, 2026
@renovate renovate Bot changed the title Update module github.com/oapi-codegen/echo-middleware to v1.1.0 - autoclosed Update module github.com/oapi-codegen/echo-middleware to v1.1.0 Aug 29, 2026
@renovate renovate Bot reopened this Aug 29, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-echo-middleware-1.x branch from cde9a24 to e98ca5e Compare August 29, 2026 21:25
@renovate renovate Bot changed the title Update module github.com/oapi-codegen/echo-middleware to v1.1.0 Update module github.com/oapi-codegen/echo-middleware to v1.1.0 - autoclosed Sep 2, 2026
@renovate renovate Bot closed this Sep 2, 2026
@renovate renovate Bot changed the title Update module github.com/oapi-codegen/echo-middleware to v1.1.0 - autoclosed Update module github.com/oapi-codegen/echo-middleware to v1.1.0 Sep 3, 2026
@renovate renovate Bot reopened this Sep 3, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-echo-middleware-1.x branch 2 times, most recently from e98ca5e to 38342a9 Compare September 3, 2026 04:01
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-echo-middleware-1.x branch from 38342a9 to 3292c20 Compare October 23, 2026 06:55
@renovate renovate Bot changed the title Update module github.com/oapi-codegen/echo-middleware to v1.1.0 Update module github.com/oapi-codegen/echo-middleware to v1.2.1 Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants