-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
Description
Description
When I define multiple tags and add more than one to path definition csharp generator generates multiple Response interfaces with same. Then to code doesn't compile.
openapi-generator version
openapi-codegen-cli-7.8.0.jar
OpenAPI declaration file content or url
Generation Details
java.exe -jar .\openapi-generator-cli.jar generate -i '.\duplicit-classes.yaml' -g csharp -o .\test\ --additional-properties='library=generichost,targetFramework=net8.0,excludeTests=true,nullableReferenceTypes=true,useOneOfDiscriminatorLookup=true,packageName=Test.Client'
Steps to reproduce
Generate code with command above open in VS and compile or use dotnet build command
Suggest a fix
use {{interfacePrefix}}{{operationId}}{{classname}}Response as interface name instead of {{interfacePrefix}}{{operationId}}ApiResponse in api.mustache