From 63a02559ea1cc84f829b165d27f932ce517db8b0 Mon Sep 17 00:00:00 2001 From: xingzi <1771761586@qq.com> Date: Sat, 30 Oct 2021 22:54:09 +0800 Subject: [PATCH] fix gitee #I4FWFT --- src/main/java/com/power/doc/builder/OpenApiBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/power/doc/builder/OpenApiBuilder.java b/src/main/java/com/power/doc/builder/OpenApiBuilder.java index 6e23896..22d9926 100644 --- a/src/main/java/com/power/doc/builder/OpenApiBuilder.java +++ b/src/main/java/com/power/doc/builder/OpenApiBuilder.java @@ -252,11 +252,12 @@ public class OpenApiBuilder { if (apiParam.isHasItems()) { detail.put("type", "array"); Map 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);