Skip to content

feat: convert middleware to echo v5#1

Merged
mromaszewicz merged 1 commit into
mainfrom
feat/echo-v5
Jul 9, 2026
Merged

feat: convert middleware to echo v5#1
mromaszewicz merged 1 commit into
mainfrom
feat/echo-v5

Conversation

@mromaszewicz

Copy link
Copy Markdown
Member

Port the request validation middleware from echo v4 to echo v5, based on the implementation contributed in oapi-codegen/echo-middleware#48:

  • echo.Context (interface) becomes *echo.Context (struct pointer) throughout the API, including ErrorHandler and GetEchoContext
  • echo v5's HTTPError no longer has an exported Internal field, so validation errors are no longer attached to the returned HTTP errors
  • SecurityRequirementsError unwrapping uses errors.As and falls back to the v5 StatusCode() int error convention
  • depend on github.com/labstack/echo/v5 v5.2.1, requiring Go 1.25+

Remove the conversion-in-progress notice from the README, leaving only the note that no release has been tagged yet.

@socket-security

socket-security Bot commented Jul 9, 2026

Copy link
Copy Markdown

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

View full report

Port the request validation middleware from echo v4 to echo v5, based
on the implementation contributed in oapi-codegen/echo-middleware#48:

- `echo.Context` (interface) becomes `*echo.Context` (struct pointer)
  throughout the API, including `ErrorHandler` and `GetEchoContext`
- echo v5's `HTTPError` no longer has an exported `Internal` field, so
  validation errors are no longer attached to the returned HTTP errors
- `SecurityRequirementsError` unwrapping uses `errors.As` and falls
  back to the v5 `StatusCode() int` error convention
- depend on `github.com/labstack/echo/v5` v5.2.1, requiring Go 1.25+

Remove the conversion-in-progress notice from the README, leaving only
the note that no release has been tagged yet.

Co-authored-by: jinuthankachan <jinu.t.92@gmail.com>
@mromaszewicz mromaszewicz merged commit d59a566 into main Jul 9, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant