Closed DaanA32 closed 9 months ago
Hi @DaanA32 , the Authorization
header is explicitly ignored by the OpenAPI spec [1] and the annotation [2]. You likely want to use a security scheme + security requirements [3] to describe this aspect of your API.
[1] https://spec.openapis.org/oas/v3.0.3.html#fixed-fields-9 [2] https://download.eclipse.org/microprofile/microprofile-open-api-3.1.1/apidocs/org/eclipse/microprofile/openapi/annotations/parameters/Parameter.html#name() [3] https://swagger.io/docs/specification/authentication/bearer-authentication/
Hi Mike,
Thanks for informing me about this :smile:
It would be good to generate a warning in the case where it is specified using the @Parameter
as that is an explicit request.
Hi all,
I cannot seem to generate a parameter for a HeaderParam. It does work for query and cookie parameters:
Generates:
It also does not generate when using
@Parameters
:Results in:
I'm using the following version: