Skip to content

Echo V5 now uses the generic test framework#2382

Merged
mromaszewicz merged 1 commit into
oapi-codegen:mainfrom
mromaszewicz:chore/cleanup-echov5-test
May 19, 2026
Merged

Echo V5 now uses the generic test framework#2382
mromaszewicz merged 1 commit into
oapi-codegen:mainfrom
mromaszewicz:chore/cleanup-echov5-test

Conversation

@mromaszewicz

Copy link
Copy Markdown
Member

When I updated to Go 1.25 and un-moduled the echo-v5 code, I left behind the special-cased test for echo-v5 which existed due to module boundaries. Since those modules don't exist anymore, we can remove the special casing.

@mromaszewicz
mromaszewicz requested a review from a team as a code owner May 19, 2026 16:14
@mromaszewicz mromaszewicz added the chore Any maintenance tasks that are regular, not as important to call out in the changelog label May 19, 2026
@greptile-apps

greptile-apps Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR moves Echo v5 parameter coverage into the shared parameter round-trip tests. It changes:

  • Adds Echo v5 to the generic parameter test harness.
  • Moves Echo v5 generated server and type fixtures into an echov5/gen package.
  • Updates Echo v5 server fixtures to use the generated package types.
  • Removes the old package-local Echo v5 client fixture and special-case test.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
internal/test/parameters/param_roundtrip_test.go Adds Echo v5 to the shared parameter round-trip test setup.
internal/test/parameters/echov5/server.go Updates the Echo v5 test server to implement the generated interface from the new gen package.
internal/test/parameters/echov5/gen/server.gen.go Commits the generated Echo v5 server fixture in the new package location.
internal/test/parameters/echov5/gen/types.gen.go Commits the generated Echo v5 model and parameter types in the new package location.

Reviews (2): Last reviewed commit: "Echo V5 now uses the generic test framew..." | Re-trigger Greptile

Comment thread internal/test/parameters/param_roundtrip_test.go
When I updated to Go 1.25 and un-moduled the echo-v5 code, I left behind
the special-cased test for echo-v5 which existed due to module boundaries.
Since those modules don't exist anymore, we can remove the special casing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mromaszewicz
mromaszewicz force-pushed the chore/cleanup-echov5-test branch from c6dbeac to c5c06db Compare May 19, 2026 16:17
@mromaszewicz

Copy link
Copy Markdown
Member Author

@greptileai

@mromaszewicz
mromaszewicz merged commit 28b47ca into oapi-codegen:main May 19, 2026
14 checks passed
@mromaszewicz
mromaszewicz deleted the chore/cleanup-echov5-test branch May 19, 2026 16:21
lwc pushed a commit to lwc/oapi-codegen that referenced this pull request Jun 23, 2026
When I updated to Go 1.25 and un-moduled the echo-v5 code, I left behind
the special-cased test for echo-v5 which existed due to module boundaries.
Since those modules don't exist anymore, we can remove the special casing.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Any maintenance tasks that are regular, not as important to call out in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant