Skip to content

Commit a69fcdd

Browse files
authored
Copy vendor extensions from request body (#6766)
1 parent 1798fea commit a69fcdd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5863,6 +5863,9 @@ public CodegenParameter fromRequestBody(RequestBody body, Set<String> imports, S
58635863
codegenParameter.description = escapeText(body.getDescription());
58645864
codegenParameter.required = body.getRequired() != null ? body.getRequired() : Boolean.FALSE;
58655865
codegenParameter.isBodyParam = Boolean.TRUE;
5866+
if (body.getExtensions() != null) {
5867+
codegenParameter.vendorExtensions.putAll(body.getExtensions());
5868+
}
58665869

58675870
String name = null;
58685871
LOGGER.debug("Request body = " + body);

0 commit comments

Comments
 (0)