Skip to content

Inline strict middleware typedefs#2271

Open
mromaszewicz wants to merge 1 commit intooapi-codegen:mainfrom
mromaszewicz:fix/issue-2270
Open

Inline strict middleware typedefs#2271
mromaszewicz wants to merge 1 commit intooapi-codegen:mainfrom
mromaszewicz:fix/issue-2270

Conversation

@mromaszewicz
Copy link
Member

Replace type aliases to runtime/strictmiddleware/* packages with inline type definitions in all strict server templates. This removes the unnecessary runtime dependency for StrictHandlerFunc and StrictMiddlewareFunc, and updates interface{} to any in the fiber template for consistency.

Closes #2270

Replace type aliases to runtime/strictmiddleware/* packages with inline
type definitions in all strict server templates. This removes the
unnecessary runtime dependency for StrictHandlerFunc and
StrictMiddlewareFunc, and updates interface{} to any in the fiber
template for consistency.

Closes oapi-codegen#2270

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mromaszewicz mromaszewicz requested a review from a team as a code owner March 3, 2026 19:54
@jinuthankachan
Copy link
Contributor

jinuthankachan commented Mar 4, 2026

closes #2275

This PR would be able to fix the above issue aswell.

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.

Strict server middleware function definitions don't need to be in the runtime package

2 participants