Closed niteshhegde closed 4 years ago
When can this be merged?
@ErikWittern any change to merge some of the open PR's? Otherwise I will need to use my own fork, which I rather not do.
@niteshhegde Thanks for the PR!
@RolphH Very sorry for the late reply, and thanks for reminding me again. I merged also your other PR https://github.com/ErikWittern/openapi-snippet/pull/45 and published a new version 0.9.0
Fix for securitySchemes validations in OpenAPI 3.0 for type "oauth2" Ref: https://swagger.io/docs/specification/authentication/oauth2/
For OAS: "securitySchemes": { "oauth2": { "type": "oauth2", "flows": { } } } This causes the code to fail at: "authScheme = secDefinition.scheme.toLowerCase();" as scheme doesn't exist for type oauth2. Thereby, causing 'Cannot call method 'toLowerCase' of undefined'.