Closed aleksa-djurdjulov closed 1 year ago
Hi, thanks for the suggestion. I added the possibility to specify a collection of strings / security scheme names in version 1.3.0. Currently, all specified names are handled via an "or"-operator, since imho this is the most common case.
OpenApiRoute.securitySchemeName
still works as expectedOpenApiRoute.securitySchemeNames
to specify a collection of names
OAS3 allows combining security requirements with logical operators (OR and AND). More details can be found in the documentation under Using Multiple Authentication Types, but the basic logic for documenting security of a route is as follow:
From my observation of this library, this should be doable by changing the
OpenApiRoute.securitySchemeName
(link) from aString?
to something like aCollection<Collection<String>>
(or justCollection<String>
for start, to support the OR logical operator) and supporting the following change here.