OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.56k stars 6.28k forks source link

[REQ] Allow headers to be visible in swagger even if the ý are implicit #18931

Open dahankzter opened 2 weeks ago

dahankzter commented 2 weeks ago

Is your feature request related to a problem? Please describe.

implicitHeaders makes the Spring generator not add the explicit parameters but it also seems to remove them from the generated swagger. I would like implicit headers to be shown as header parameters in the generated spec but not explicit in the method signatures,

Additional context

The concrete use case now is that we have a number of X-.... headers that we would like to be shown explicit in the parameters of the swagger documentation but we are handling them globally in a number of filters and interceptors.