forked from loafle/openapi-generator-original
fix unescaped description in requestBody (#857)
Fix unescaped description in requestBody
This commit is contained in:
parent
aa19369466
commit
39763a8ca7
@ -2368,7 +2368,7 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
bodyParameterName = (String) op.vendorExtensions.get("x-codegen-request-body-name");
|
bodyParameterName = (String) op.vendorExtensions.get("x-codegen-request-body-name");
|
||||||
}
|
}
|
||||||
bodyParam = fromRequestBody(requestBody, schemas, imports, bodyParameterName);
|
bodyParam = fromRequestBody(requestBody, schemas, imports, bodyParameterName);
|
||||||
bodyParam.description = requestBody.getDescription();
|
bodyParam.description = escapeText(requestBody.getDescription());
|
||||||
postProcessParameter(bodyParam);
|
postProcessParameter(bodyParam);
|
||||||
|
|
||||||
bodyParams.add(bodyParam);
|
bodyParams.add(bodyParam);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user