reta commented on a change in pull request #15: The AnnotationProcessor should
consider '@APIResponses' annotation
URL: https://github.com/apache/geronimo-openapi/pull/15#discussion_r272991203
##########
File path:
geronimo-openapi-impl/src/main/java/org/apache/geronimo/microprofile/openapi/impl/processor/AnnotationProcessor.java
##########
@@ -307,10 +308,17 @@ private Operation buildOperation(final OpenAPI api,
final AnnotatedMethodElement
.filter(v -> !v.isEmpty())
.collect(toList()))
.ifPresent(operation::tags);
-
- of(m.getAnnotationsByType(APIResponse.class)).filter(s -> s.length >
0).ifPresent(items -> {
+
+ final Collection<APIResponse> apiResponses = Stream
Review comment:
You are very right, the `@APIResponse` is repetable and `@APIResponses` are
properly handled, turned out to be an issue on my side. Thank you!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services