Skip to content

[BUG] Swagger ignore Annotation Operation(operationId) #2716

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

Closed
alverad-katsuro opened this issue Sep 19, 2024 · 1 comment
Closed

[BUG] Swagger ignore Annotation Operation(operationId) #2716

alverad-katsuro opened this issue Sep 19, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@alverad-katsuro
Copy link

alverad-katsuro commented Sep 19, 2024

Describe the bug

I am using the "swagger-typescript-api" library to generate client, however I noticed that the @operation annotation with the operationId parameter is being ignored for overloaded methods, they are grouped in the api-docs specification and only the last one is taken into account, in addition to adding a suffix.

To Reproduce

Create two GET endpoints with same path and add @operation(operationId = '')

Code example: https://github.com/alverad-katsuro/example-swagger-bug.git based on: #675 (comment)

Expected behavior

Two specifications in api-docs

image

Screenshots

image

Additional context
Spring Boot 3.3.3
Swagger 2.5.0

@bnasslahsen bnasslahsen added the duplicate This issue or pull request already exists label Sep 23, 2024
@bnasslahsen
Copy link
Collaborator

@alverad-katsuro,

From your project, first clean-up some useless dependencies
image

Then the issue you are mentioning is resolved by #2646

You can already test it based on the latest SNAPSHOT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants
@bnasslahsen @alverad-katsuro and others