Closed
Description
version: 1.3.1
All fields are required when an object is used as an input parameter who marked @ParameterObject
eg:
@GetMapping(value = "/demo")
public Result<?> list(@ParameterObject ParameterQuery query,
@ParameterObject @PageableDefault Pageable pageable) {
return ResultCreator.success(null);
}
@Data
@NoArgsConstructor
@AllArgsConstructor
public static class ParameterQuery implements Serializable {
private String q1;
private String q2;
private String q3;
}
And It is still invalid If I mark @parameter(required = false) on the field like this
@Parameter(required = false)
private String q1;
I read the source code, probably because of a problem with these two lines of code or the way I use it ?
org.springdoc.core.AbstractRequestBuilder row 352
org.springdoc.core.GenericParameterBuilder row 159