Skip to content

swagger-maven-plugin: OPERATION annotation with multiple TAGS does not correctly generate openapi.json using inheritance in Java #4882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
anadal-fundaciobit opened this issue May 5, 2025 · 0 comments

Comments

@anadal-fundaciobit
Copy link

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:
Image

SERVICE 1:
Image

SERVICE 2:
Image

Swagger-maven-plugin definition (pom.xml):
Image

SWAGGER UI SERVICE 1:
Image

SWAGGER UI SERVICE 2:
Image

I am using io.swagger.core.v3::swagger-maven-plugin::2.2.20 and java 11

openapi_signature_v1.json

Source code with workaround to work: https://github.com/GovernIB/portafib/tree/portafib-3.0/api-interna

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant