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
{{ message }}
Repository navigation
Error is generated if a securitySchemes entry in the Components Object is a reference #1166
$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.
Activity
darrelmiller commentedon Feb 21, 2023
Thank you for reporting this. I agree this is a bug.