Skip to content

feat: add support for echo v5 - #89

Merged
mromaszewicz merged 4 commits into
oapi-codegen:mainfrom
jinuthankachan:feat/support-echo-v5
Mar 3, 2026
Merged

feat: add support for echo v5#89
mromaszewicz merged 4 commits into
oapi-codegen:mainfrom
jinuthankachan:feat/support-echo-v5

Conversation

@jinuthankachan

@jinuthankachanjinuthankachan commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

@jinuthankachan
jinuthankachan requested a review from a team as a code ownerFebruary 19, 2026 05:49
@jinuthankachanjinuthankachan changed the title feat: add support for echo v4feat: add support for echo v5Feb 19, 2026
jinuthankachanand others added 3 commits March 3, 2026 12:13
Move strictmiddleware/echo/v5/ to strictmiddleware/echo-v5/ with its
own go.mod requiring Go 1.25, so the root module stays at Go 1.20.
This avoids forcing all runtime users to upgrade to Go 1.25 just
because echo v5 support was added. The echo-v5 package is a separate
Go module with only the echo v5 dependency.
Also changes package name from `v5` to `echo` to follow Go convention
(matching how github.com/labstack/echo/v5 uses `package echo`).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The echo-v5 strict middleware requires Go 1.25+, which is ahead of the
rest of the runtime module (Go 1.20). To support this as a separate
child module, the CI and build tooling needed to become multi-module
aware.
- Replace four separate workflow files (ci.yml, lint.yml, tidy.yml,
generate.yml) with a single ci.yml that calls the shared reusable
workflow from oapi-codegen/actions v0.5.0
- Update the root Makefile to iterate child modules via
git ls-files '**/*go.mod', matching the pattern used by oapi-codegen
- Bump golangci-lint from v1.55.2 to v2.10.1 and update flags for v2
- Add tidy-ci target for the reusable workflow
- Add strictmiddleware/echo-v5/Makefile with a Go version guard that
skips gracefully when running on Go < 1.25
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addedgithub.com/​labstack/​echo/​v5@​v5.0.472100100100100

View full report

@mromaszewiczmromaszewicz added the enhancement New feature or request label Mar 3, 2026
@mromaszewicz
mromaszewicz merged commit 99b941f into oapi-codegen:mainMar 3, 2026
23 checks passed
@jinuthankachan
jinuthankachan deleted the feat/support-echo-v5 branch March 4, 2026 04:31
@tommyjcarpenter

Copy link
Copy Markdown

Good morning - my understanding is that this adds support for echo v5 - when will this be tagged/released? Thanks!

@tommyjcarpentertommyjcarpenter mentioned this pull request Mar 16, 2026
@mromaszewicz

Copy link
Copy Markdown
Member

I'm working on a last few PR's and a release is coming in not too long. I don't have an exact date, but this week, hopefully.

@jamietanna

Copy link
Copy Markdown
Member

See also: https://github.com/oapi-codegen/oapi-codegen?tab=readme-ov-file#pinning-to-commits for how to pull changes when we haven't yet released a tag

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for echo/v5

4 participants

@jinuthankachan@tommyjcarpenter@mromaszewicz@jamietanna