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.
The OpenAPI v2 Spec states that the "flow" field of the security scheme accepts "accessCode". However, the
ToV3SecuritySchemefunction 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.