fix gitee #I4FWFT

This commit is contained in:
xingzi 2021-10-30 22:54:09 +08:00
parent b2b5a21775
commit 63a02559ea
1 changed files with 2 additions and 1 deletions

View File

@ -252,11 +252,12 @@ public class OpenApiBuilder {
if (apiParam.isHasItems()) {
detail.put("type", "array");
Map<String, Object> items = new HashMap<>();
items.put("type", "string");
items.put("type", "file");
items.put("format", "binary");
detail.put("items", items);
} else {
detail.put("format", "binary");
detail.put("type", "file");
}
}
properties.put(apiParam.getField(), detail);