Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI 3.0 securitySchemes fix for oauth2 #42

Merged
merged 2 commits into from Jun 22, 2020

Conversation

niteshhegde
Copy link
Contributor

@niteshhegde niteshhegde commented May 5, 2020

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'.

@RolphH
Copy link
Contributor

RolphH commented May 29, 2020

When can this be merged?

@RolphH
Copy link
Contributor

RolphH commented Jun 22, 2020

@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.

@ErikWittern ErikWittern merged commit 8784611 into ErikWittern:master Jun 22, 2020
@ErikWittern
Copy link
Owner

@niteshhegde Thanks for the PR!

@RolphH Very sorry for the late reply, and thanks for reminding me again. I merged also your other PR #45 and published a new version 0.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants