File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/service Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,6 @@ else if (!RequestMethod.GET.equals(requestMethod)) {
334
334
if (defaultSupportFormData && requestBody != null
335
335
&& requestBody .getContent () != null
336
336
&& requestBody .getContent ().containsKey (org .springframework .http .MediaType .MULTIPART_FORM_DATA_VALUE )) {
337
- io .swagger .v3 .oas .models .media .Schema <?> mergedSchema = requestBodyInfo .getMergedSchema ();
338
337
Iterator <Entry <String , Parameter >> it = map .entrySet ().iterator ();
339
338
while (it .hasNext ()) {
340
339
Entry <String , Parameter > entry = it .next ();
@@ -346,7 +345,7 @@ else if (!RequestMethod.GET.equals(requestMethod)) {
346
345
itemSchema .setDeprecated (parameter .getDeprecated ());
347
346
if (parameter .getExample () != null )
348
347
itemSchema .setExample (parameter .getExample ());
349
- mergedSchema . addProperty (entry .getKey (), itemSchema );
348
+ requestBodyInfo . addProperties (entry .getKey (), itemSchema );
350
349
it .remove ();
351
350
}
352
351
}
You can’t perform that action at this time.
0 commit comments