Skip to content

@SecurityScheme paramName not accounted for the name. #384

Closed
@lpandzic

Description

@lpandzic

The following:

@SecurityScheme(name = "BearerAuthCookie",
        type = SecuritySchemeType.APIKEY,
        in = SecuritySchemeIn.COOKIE,
        paramName = "JWT")

does not result into:

  securitySchemes:
    BearerAuthCookie:
      type: apiKey
      name: JWT
      in: cookie

and instead the name is set to BearerAuthCookie.
See https://github.com/swagger-api/swagger-core/blob/v2.0.4/modules/swagger-annotations/src/main/java/io/swagger/v3/oas/annotations/security/SecurityScheme.java#L71

Exact same issue as micronaut-projects/micronaut-openapi#59.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions