set default required to false
This commit is contained in:
parent
c9964361b0
commit
2e1e03a90b
|
@ -41,10 +41,12 @@ public class ApiReqHeader {
|
|||
* Request header type
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* request header defaultValue
|
||||
*/
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* Request header description
|
||||
*/
|
||||
|
|
|
@ -479,7 +479,7 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
|
|||
JavaClass javaClass = builder.getJavaProjectBuilder().getClassByName(fullTypeName);
|
||||
List<JavaAnnotation> annotations = parameter.getAnnotations();
|
||||
List<String> groupClasses = JavaClassUtil.getParamGroupJavaClass(annotations);
|
||||
String strRequired = "true";
|
||||
String strRequired = "false";
|
||||
boolean isPathVariable = false;
|
||||
for (JavaAnnotation annotation : annotations) {
|
||||
String annotationName = annotation.getType().getValue();
|
||||
|
|
Loading…
Reference in New Issue