From 9d7f53731ae4139d7cc98e602299f130e93f3187 Mon Sep 17 00:00:00 2001 From: songhaozhi <1150837340@qq.com> Date: Fri, 25 Oct 2019 20:54:45 +0800 Subject: [PATCH] Repair gitee issues #I13ZAL --- src/main/java/com/power/doc/builder/SourceBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/power/doc/builder/SourceBuilder.java b/src/main/java/com/power/doc/builder/SourceBuilder.java index 4ad7669..af76013 100644 --- a/src/main/java/com/power/doc/builder/SourceBuilder.java +++ b/src/main/java/com/power/doc/builder/SourceBuilder.java @@ -1175,7 +1175,7 @@ public class SourceBuilder { ApiParam param = ApiParam.of().setField(paramName) .setType(DocClassUtil.processTypeNameForParams(simpleName)) - .setDesc(comment).setRequired(true).setVersion(DocGlobalConstants.DEFAULT_VERSION); + .setDesc(comment).setRequired(Boolean.valueOf(required)).setVersion(DocGlobalConstants.DEFAULT_VERSION); paramList.add(param); } else { continue;