Skip to content

Commit eb048ca

Browse files
committed
Changes report #1804
1 parent 6024bed commit eb048ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/service/AbstractRequestService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ else if (!RequestMethod.GET.equals(requestMethod)) {
334334
if (defaultSupportFormData && requestBody != null
335335
&& requestBody.getContent() != null
336336
&& requestBody.getContent().containsKey(org.springframework.http.MediaType.MULTIPART_FORM_DATA_VALUE)) {
337-
io.swagger.v3.oas.models.media.Schema<?> mergedSchema = requestBodyInfo.getMergedSchema();
338337
Iterator<Entry<String, Parameter>> it = map.entrySet().iterator();
339338
while (it.hasNext()) {
340339
Entry<String, Parameter> entry = it.next();
@@ -346,7 +345,7 @@ else if (!RequestMethod.GET.equals(requestMethod)) {
346345
itemSchema.setDeprecated(parameter.getDeprecated());
347346
if (parameter.getExample() != null)
348347
itemSchema.setExample(parameter.getExample());
349-
mergedSchema.addProperty(entry.getKey(), itemSchema);
348+
requestBodyInfo.addProperties(entry.getKey(), itemSchema);
350349
it.remove();
351350
}
352351
}

0 commit comments

Comments
 (0)