Skip to content

Commit

Permalink
fix Decimal processing in CSharp
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Dec 18, 2024
1 parent ffce5a1 commit a9d014a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
</dependencies>
<properties>
<maven.compiler.release>8</maven.compiler.release>
<swagger-codegen-version>3.0.64</swagger-codegen-version>
<swagger-codegen-version>3.0.65-SNAPSHOT</swagger-codegen-version>
<swagger-parser-version>2.1.22</swagger-parser-version>
<swagger-core-version>2.2.25</swagger-core-version>
<jackson-version>2.17.2</jackson-version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2168,7 +2168,7 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation

if (schema == null) {
CodegenParameter codegenParameter = CodegenModelFactory.newInstance(CodegenModelType.PARAMETER);
codegenParameter.description = body.getDescription();
codegenParameter.description = escapeText(body.getDescription());
codegenParameter.unescapedDescription = body.getDescription();
String bodyName = REQUEST_BODY_NAME;
if (body.getExtensions() != null && body.getExtensions().get("x-codegen-request-body-name") != null) {
Expand Down Expand Up @@ -2679,7 +2679,7 @@ public CodegenParameter fromRequestBody(RequestBody body, String name, Schema sc
}
codegenParameter.baseName = bodyName;
codegenParameter.paramName = bodyName;
codegenParameter.description = body.getDescription();
codegenParameter.description = escapeText(body.getDescription());
codegenParameter.unescapedDescription = body.getDescription();
codegenParameter.required = body.getRequired() != null ? body.getRequired() : Boolean.FALSE;
codegenParameter.getVendorExtensions().put(CodegenConstants.IS_BODY_PARAM_EXT_NAME, Boolean.TRUE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ public AbstractCSharpCodegen() {
"String",
"Boolean",
"Double",
"Decimal",
"BigDecimal",
"Int32",
"Int64",
"Float",
Expand Down

0 comments on commit a9d014a

Please sign in to comment.