Commit 99b941f
feat: add support for echo v5 (#89)
* feat: add support for echo v5
* fix: move echo v5 strict types to own module as peer directory
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>
* chore/update CI for nested modules
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>
---------
Co-authored-by: Marcin Romaszewicz <marcinr@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent d4b9383 commit 99b941f
9 files changed
+91
-115
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 4 | | |
13 | | - | |
| 5 | + | |
14 | 6 | | |
15 | 7 | | |
16 | 8 | | |
17 | 9 | | |
18 | 10 | | |
| 11 | + | |
19 | 12 | | |
| 13 | + | |
| 14 | + | |
20 | 15 | | |
21 | 16 | | |
22 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
23 | 21 | | |
24 | 22 | | |
| 23 | + | |
25 | 24 | | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | | - | |
| 35 | + | |
32 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments