Skip to content

feat: add support for echo v5#89

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

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

Conversation

@jinuthankachan
Copy link
Contributor

@jinuthankachan jinuthankachan commented Feb 19, 2026

@jinuthankachan jinuthankachan requested a review from a team as a code owner February 19, 2026 05:49
@jinuthankachan jinuthankachan changed the title feat: add support for echo v4 feat: add support for echo v5 Feb 19, 2026
jinuthankachan and 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

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedgithub.com/​labstack/​echo/​v5@​v5.0.472100100100100

View full report

@mromaszewicz mromaszewicz added the enhancement New feature or request label Mar 3, 2026
@mromaszewicz mromaszewicz merged commit 99b941f into oapi-codegen:main Mar 3, 2026
23 checks passed
@jinuthankachan jinuthankachan deleted the feat/support-echo-v5 branch March 4, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for echo/v5

2 participants