When @Get
, using @Parameter
over the method results in duplicate of the same parameter
#1901
Labels
enhancement
New feature or request
Describe the bug
When
@Get
, using@Parameter
over the method results in duplicate of the sameparameter
.To Reproduce
What version of spring-boot you are using?
id 'org.springframework.boot' version '2.7.5'
What modules and versions of springdoc-openapi are you using?
implementation 'org.springdoc:springdoc-openapi-ui:1.6.12'
What is the actual and the expected result using OpenAPI Description (yml or json)?
actual
expected
Provide with a sample code (HelloController) or Test that reproduces the problem
Controller source code
Source code 1 for expected problems
Source code 2 for expected problems
Expected behavior
When using
@Parameter
over the method,io.swagger.v3.oas.annotations.parameter
is entered in the argumentparametersDocMap
.After that, when comparing the values of condition
if(!map.containsKey(entry.getKey()))
, it is compared with hashCode ofParameterId
, and even though it is the sameParameterId
, it is classified as differentParameterId
.Hash code for "ParameterId.java"
Screenshots
The text was updated successfully, but these errors were encountered: