fix gitee #I4FWFT
This commit is contained in:
parent
b2b5a21775
commit
63a02559ea
|
@ -252,11 +252,12 @@ public class OpenApiBuilder {
|
||||||
if (apiParam.isHasItems()) {
|
if (apiParam.isHasItems()) {
|
||||||
detail.put("type", "array");
|
detail.put("type", "array");
|
||||||
Map<String, Object> items = new HashMap<>();
|
Map<String, Object> items = new HashMap<>();
|
||||||
items.put("type", "string");
|
items.put("type", "file");
|
||||||
items.put("format", "binary");
|
items.put("format", "binary");
|
||||||
detail.put("items", items);
|
detail.put("items", items);
|
||||||
} else {
|
} else {
|
||||||
detail.put("format", "binary");
|
detail.put("format", "binary");
|
||||||
|
detail.put("type", "file");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
properties.put(apiParam.getField(), detail);
|
properties.put(apiParam.getField(), detail);
|
||||||
|
|
Loading…
Reference in New Issue