-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Description
Description
Since Issue #6281 and PR #6305, the parameters in model constructors are not using the recommended style rules from Microsoft. This creates breaking changes for our users who are using this formatting:
Old:
new Model(argument1: "foo", argument3: "bar")
New:
new Model(Argument1: "foo", Argument3: "bar")
This does not apply to the API method parameters, only model constructor parameters.
Swagger-codegen version
2.3.0
Swagger declaration file content or url
JSON Language Configuration File:
{
"packageName": "MyApi.Client",
"apiPackage": "Api"
}
Also, attempting adding "modelPropertyNaming": "camelCase", this provided the desired result for the parameters, but then the models were also named in camelCase.
Command line used for generation
docker run --rm -v /swagger_codegen:/local swaggerapi/swagger-codegen-cli generate -i /v1.json -l csharp -o /local/generated/csharp -c /local/csharp.json
Related issues/PRs
Suggest a fix/enhancement
Switch back to using camelCase on the model constructors, per the style guidelines from Microsoft.
Metadata
Metadata
Assignees
Labels
No labels