update openapi create error for upload

This commit is contained in:
shalousun 2021-10-30 15:59:29 +08:00
parent 6e3def2f7e
commit 6d993ed2a4
1 changed files with 1 additions and 5 deletions

View File

@ -241,11 +241,7 @@ public class OpenApiBuilder {
if (!isRep && apiMethodDoc.getContentType().equals(DocGlobalConstants.MULTIPART_TYPE)) { if (!isRep && apiMethodDoc.getContentType().equals(DocGlobalConstants.MULTIPART_TYPE)) {
// formdata // formdata
Map<String, Object> map = new LinkedHashMap<>(); Map<String, Object> map = new LinkedHashMap<>();
if (apiMethodDoc.isListParam()) { map.put("type", "object");
map.put("type", DocGlobalConstants.ARRAY);
} else {
map.put("type", "object");
}
Map<String, Object> properties = new LinkedHashMap<>(); Map<String, Object> properties = new LinkedHashMap<>();
Map<String, Object> detail; Map<String, Object> detail;
for (ApiParam apiParam : apiMethodDoc.getQueryParams()) { for (ApiParam apiParam : apiMethodDoc.getQueryParams()) {