Closed jens-duttke closed 5 years ago
@jens-duttke Thanks for filing this issue. In line 253, it looks like the lookup of bearerAuth
is actually performed in components.securitySchemes
, but your error indicates that lookup fails, despite the OpenAPI file containing a corresponding entry. Can you maybe try to provide some more details on the content of swagger.components.securitySchemes
at that point in the code?
@ErikWittern I've just realized that your version on npm does not match to the code on Github.
I've overwritten the code provided via npm by the files from Github, and now it works without problems.
Maybe you should consider to update your npm package.
If I try to import an OpenAPI 3 file with
I get the error:
The problem is, that for OpenAPI 3, the
securityDefinitions
has been moved tocomponents.securitySchemes
.A workaround is, doing:
before calling
SwaggerSnippet.getSwaggerSnippets()
, but a solution implemented in the package would be a better.