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)) {
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 }
You can’t perform that action at this time.
0 commit comments