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

OpenAPI2 conversion: OAuth2 flow should accept "accessCode" #244

Closed
thomasnelson4 opened this issue Aug 25, 2020 · 0 comments · Fixed by #256
Closed

OpenAPI2 conversion: OAuth2 flow should accept "accessCode" #244

thomasnelson4 opened this issue Aug 25, 2020 · 0 comments · Fixed by #256

Comments

@thomasnelson4
Copy link

The OpenAPI v2 Spec states that the "flow" field of the security scheme accepts "accessCode". However, the ToV3SecurityScheme function of the openapi2_conv.go package only accepts "accesscode" (lowercase). This is causing issues when trying to convert a valid v2 definition to v3.

Maybe just adding a strings.ToLower() to the switch statement would be the most simple solution to this issue.

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 a pull request may close this issue.

1 participant