You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ref is not a valid property at #/components/securitySchemes/OAuth2
$ref is not a valid property at #/components/securitySchemes/PersonalAccessTokens
Expected behavior
The above securitySchemes definition with $ref should not generated the above error. According to OpenApi V3.0.1 spec this is allowed, quoting from the spec:
securitySchemes | Map[string, Security Scheme Object / Reference Object] | An object to hold reusable Security Scheme Objects.
The text was updated successfully, but these errors were encountered:
Description of the bug
When a securitySchemes entry is a $ref then an error is generated. According to the OpenApi V3.0.1 this is allowed.
Example
Here is the securitySchemes definition in the components object in our OpenApi spec:
The following 2 errors are generated:
Expected behavior
The above
securitySchemes
definition with $ref should not generated the above error. According to OpenApi V3.0.1 spec this is allowed, quoting from the spec:The text was updated successfully, but these errors were encountered: