support multiple ApiImplicitParameters
@@ -59,14 +59,18 @@ public class OperationImplicitParametersReader implements OperationBuilderPlugin
}
private List<Parameter> readParameters(OperationContext context) {
- Optional<ApiImplicitParams> annotation = context.findAnnotation(ApiImplicitParams.class);
+ List<Optional<ApiImplicitParams>> annotations = context.findAllAnnotations(ApiImplicitParams.class);
List<Parameter> parameters = new ArrayList<>();
+ if (annotations != null && !annotations.isEmpty()) {
+ for (Optional<ApiImplicitParams> annotation : annotations) {
if (annotation.isPresent()) {
for (ApiImplicitParam param : annotation.get().value()) {
parameters.add(OperationImplicitParameterReader.implicitParameter(descriptions, param));
}
}
+ }
+ }
return parameters;
}
