You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When generating Kotlin code with kotlin-spring generator using both the flags
appendRequestToHandler
delegatePattern
I get classess
xxApi
xxApiController
xxApiDelegate
xxApiController seems fine. It extends xxApi.
xxApi has a correct function signature with ServerHttpRequest as the last argument, but it calls the delegate without the ServerHttpRequest argument.
xxApiDelegate does not compile, because it has a broken function signature. It has an additional nullable argument without a name, and type like this ": ?"
openapi-generator version
7.5.0
Related issues/PRs
Feature request for appendRequestToHandler: #17158
PR: #17158
Suggest a fix
Support for appendRequestToHandler was added in PR #17158, and it shows no changes for apiDelegate.mustache. This leads to believe that the delegate pattern was not addressed when adding the appendRequestToHandler feature.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
When generating Kotlin code with kotlin-spring generator using both the flags
I get classess
openapi-generator version
7.5.0
Related issues/PRs
Feature request for appendRequestToHandler: #17158
PR: #17158
Suggest a fix
Support for appendRequestToHandler was added in PR #17158, and it shows no changes for apiDelegate.mustache. This leads to believe that the delegate pattern was not addressed when adding the appendRequestToHandler feature.
The text was updated successfully, but these errors were encountered: