fix validate error
This commit is contained in:
parent
998506295e
commit
a1fa12f51f
|
@ -181,7 +181,7 @@ public class ParamsBuildHelper {
|
||||||
}
|
}
|
||||||
if (hasGroup) {
|
if (hasGroup) {
|
||||||
strRequired = true;
|
strRequired = true;
|
||||||
} else if (CollectionUtil.isEmpty(groupClassList) && CollectionUtil.isEmpty(groupClasses)) {
|
} else if (CollectionUtil.isEmpty(groupClasses)) {
|
||||||
strRequired = true;
|
strRequired = true;
|
||||||
}
|
}
|
||||||
break an;
|
break an;
|
||||||
|
|
|
@ -520,7 +520,8 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
|
||||||
} else {
|
} else {
|
||||||
if (requestBodyCounter > 0) {
|
if (requestBodyCounter > 0) {
|
||||||
//for json
|
//for json
|
||||||
paramList.addAll(ParamsBuildHelper.buildParams(gicNameArr[0], DocGlobalConstants.EMPTY, 0, "true", responseFieldMap, Boolean.FALSE, new HashMap<>(), builder, groupClasses,0));
|
paramList.addAll(ParamsBuildHelper.buildParams(gicNameArr[0], DocGlobalConstants.EMPTY, 0,
|
||||||
|
"true", responseFieldMap, Boolean.FALSE, new HashMap<>(), builder, groupClasses,0));
|
||||||
} else {
|
} else {
|
||||||
throw new RuntimeException("Spring MVC can't support binding Collection on method "
|
throw new RuntimeException("Spring MVC can't support binding Collection on method "
|
||||||
+ javaMethod.getName() + "Check it in " + javaMethod.getDeclaringClass().getCanonicalName());
|
+ javaMethod.getName() + "Check it in " + javaMethod.getDeclaringClass().getCanonicalName());
|
||||||
|
|
Loading…
Reference in New Issue