[BUG] Using model-name-prefix
with rust-axum
results in uncompilable code due to adding the prefix twice in server/mod.rs
#19632
Labels
Bug Report Checklist
Description
Using
-g rust-axum
in conjunction with--model-name-prefix=Foo
results inmodels::FooFoo{Object}
in generatedserver/mod.rd
and uncompilable code.openapi-generator version
openapi-generator-cli 7.9.0-SNAPSHOT
commit : eebecc8
OpenAPI declaration file content or url
You can use the provided test
petstore
spec (https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml)Generation Details
Steps to reproduce
server/mod.rs
Related issues/PRs
Suggest a fix
I am guessing it is connected to
openapi-generator/modules/openapi-generator/src/main/resources/rust-axum/server-operation-validate.mustache
Line 65 in eebecc8
dataType
is getting the prefix added twice.The text was updated successfully, but these errors were encountered: