Skip to content

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

@thomasnelson4

Description

@thomasnelson4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions