swagger-core
swagger-core copied to clipboard
swagger-maven-plugin: OPERATION annotation with multiple TAGS does not correctly generate openapi.json using inheritance in Java
I have two classes that implement the same operation defined with Swagger annotations in a Java interface. I define two tags using the @Operation annotation. The problem is that the operation is duplicated in each Service where I use them.
INTERFACE:
SERVICE 1:
SERVICE 2:
Swagger-maven-plugin definition (pom.xml):
SWAGGER UI SERVICE 1:
SWAGGER UI SERVICE 2:
I am using io.swagger.core.v3::swagger-maven-plugin::2.2.20 and java 11
Source code with workaround to work: https://github.com/GovernIB/portafib/tree/portafib-3.0/api-interna