Copy vendor extensions from request body (#6766)

This commit is contained in:
Jan Gassen 2020-06-27 09:14:53 +02:00 committed by GitHub
parent 1798fea3e7
commit a69fcddbe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5863,6 +5863,9 @@ public class DefaultCodegen implements CodegenConfig {
codegenParameter.description = escapeText(body.getDescription());
codegenParameter.required = body.getRequired() != null ? body.getRequired() : Boolean.FALSE;
codegenParameter.isBodyParam = Boolean.TRUE;
if (body.getExtensions() != null) {
codegenParameter.vendorExtensions.putAll(body.getExtensions());
}
String name = null;
LOGGER.debug("Request body = " + body);