You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a controller has an endpoint that can be called with different possible headers (key + value), then in the doc generated, in the parameters, the possible values for the headers appear twice.
Describe the bug
If a controller has an endpoint that can be called with different possible headers (key + value), then in the doc generated, in the parameters, the possible values for the headers appear twice.
How to reproduce
(Using Java 11, SpringBoot 2.7.2, springdoc-openapi-webmvc-core 1.6.10 based on Swagger-core 2.2.2)
git clone https://github.com/didjoman/springdoc-double-headers-issue
Run the application (spring boot).
Run curl --location --request GET 'http://localhost:8080/doc' --header 'Content-Type: application/json'
Expected behavior
We should obtain a schema like this, without duplication of the enum values of the parameters.
Actual behavior
Today, the possible values of the headers other than the first one get duplicated.
Additional context
/
The text was updated successfully, but these errors were encountered: