Skip to content

Commit 364ae48

Browse files
committed
set unescapedDescription and added post param method for request body.
1 parent 0d335e4 commit 364ae48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/io/swagger/codegen/v3/generators/DefaultCodegenConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2470,6 +2470,7 @@ public CodegenParameter fromRequestBody(RequestBody body, String name, Schema sc
24702470
codegenParameter.baseName = REQUEST_BODY_NAME;
24712471
codegenParameter.paramName = REQUEST_BODY_NAME;
24722472
codegenParameter.description = body.getDescription();
2473+
codegenParameter.unescapedDescription = body.getDescription();
24732474
codegenParameter.required = body.getRequired() != null ? body.getRequired() : Boolean.FALSE;
24742475
codegenParameter.getVendorExtensions().put(CodegenConstants.IS_BODY_PARAM_EXT_NAME, Boolean.TRUE);
24752476

@@ -2566,6 +2567,7 @@ else if (schema instanceof BinarySchema) {
25662567
}
25672568
}
25682569
setParameterExampleValue(codegenParameter);
2570+
postProcessParameter(codegenParameter);
25692571
return codegenParameter;
25702572
}
25712573

0 commit comments

Comments
 (0)