We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Define 2 parameter objects with same name but different location, only one can be shown in swagger UI.
To Reproduce
Env: Springboot 2.5.14 + springdoc-openapi-ui:1.6.11
Steps:
@RequestHeader(value = "access_token", required = false) @Parameter(name = "access_token", in = ParameterIn.HEADER, description = "token in header", schema = @Schema(implementation = String.class)) String tokenInHeader, @CookieValue(value = "access_token", required = false) @Parameter(name = "access_token", in = ParameterIn.COOKIE, description = "token in cookie", schema = @Schema(implementation = String.class)) String tokenInCookie
Expected behavior From openapi-specification:
A unique parameter is defined by a combination of a name and location.
The access_token in header and cookie are in different location, but the cookie is missing.
access_token
Note: If changing parameter name to other value (e.g access_token1) for cookie, it shows well.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
f24cdab
changes report #1816
7de3935
@Get
@Parameter
parameter
No branches or pull requests
Describe the bug
Define 2 parameter objects with same name but different location, only one can be shown in swagger UI.
To Reproduce
Env: Springboot 2.5.14 + springdoc-openapi-ui:1.6.11
Steps:
Expected behavior
From openapi-specification:
The
access_token
in header and cookie are in different location, but the cookie is missing.Note: If changing parameter name to other value (e.g access_token1) for cookie, it shows well.

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: