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 a spec in openapi-generator-cli version 7.12.0, The generator rust-axum fails to build a compiling module due to supplying the wrong number of generic arguments to the routing functions in src/server/mod.rs.
Such as:
java -jar "./oapi-generator/openapi-generator-cli.jar" generate -g rust-axum -i "$(Get-Location)/oapi-generator/openapi.yml" -o "$(Get-Location)/oapicode"
on linux replace with $(pwd)
Chrystalkey
changed the title
[BUG][rust-axum] Generated Client on Spec fails to supply correct number of Generic Arguments in routing
[BUG][rust-axum] Generated Server fails to supply correct number of Generic Arguments in routing
Apr 25, 2025
Bug Report Checklist
Description
When Generating a spec in openapi-generator-cli version 7.12.0, The generator rust-axum fails to build a compiling module due to supplying the wrong number of generic arguments to the routing functions in src/server/mod.rs.
Such as:
Should be
openapi-generator version
7.12.0
rustc version 1.85
OpenAPI declaration file content or url
https://raw.githubusercontent.com/Chrystalkey/landtagszusammenfasser/refs/tags/rust-axum-body-wrapped/docs/specs/openapi.yml
Generation Details
java -jar "./oapi-generator/openapi-generator-cli.jar" generate -g rust-axum -i "$(Get-Location)/oapi-generator/openapi.yml" -o "$(Get-Location)/oapicode"
on linux replace with
$(pwd)
Steps to reproduce
Related issues/PRs
related/prestep to my issue tbd
Suggest a fix
This can be fixed by plainly grep-replacing
<I, A, E>
by<I, A, E, C>
. With that the compilation of the module works.The text was updated successfully, but these errors were encountered: