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
The C# client API code generator produces constructors that are wrong in a few ways:
Members in the derived class that shadow members in the AllOf class appear twice in the constructor parameters
Some constructor parameters in the derived class are missing
The base class constructor is missing parameters
The call to the base class constructor uses parameters that are not in the parameter list of the derived class constructor
e.g., public DerivedClass (string a, string b) : BaseClass (a, c)
Description
The C# client API code generator produces constructors that are wrong in a few ways:
e.g., public DerivedClass (string a, string b) : BaseClass (a, c)
Swagger-codegen version
swagger-codegen-3.0.52
Swagger declaration file content or url
Attached file is the OpenAPI definition file for YouTrack (https://www.jetbrains.com/youtrack/)
config.json
YouTrack.json
Command line used for generation
export JAVA_HOME="c:\Program Files\Java\jdk-18.0.1.1"
java="c:/Program Files/Java/jdk-18.0.1.1/bin/java"
jar="swagger-codegen-3.0.52\modules\swagger-codegen-cli\target\swagger-codegen-cli.jar"
"$java" -jar $jar generate -i YouTrack.json -o api -l csharp -c config.json
Steps to reproduce
Related issues/PRs
#11905
#11900
Suggest a fix/enhancement
I have no suggestions. It just appears to be broken.
The text was updated successfully, but these errors were encountered: