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
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
What is the actual result using OpenAPI Description (yml or json)?
I've defined an oauth2 security scheme with no scopes. The generated OAS doc does not contain a scopes object - but according to https://swagger.io/docs/specification/authentication/oauth2/, an empty scopes object should be defined (See the "No Scopes" section on that page.) This has never been an issue before, but I am using a tool that doesn't like that.
Describe the solution you'd like
A clear and concise description of what you want to happen.
What is the expected result using OpenAPI Description (yml or json)?
For a no-scope security scheme, define an empty scopes object, e.g. components: securitySchemes: oAuthNoScopes: type: oauth2 flows: implicit: authorizationUrl: https://api.example.com/oauth2/authorize scopes: {}
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I tried to force this using an empty OAuthScope object, but that did not work.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I've defined an oauth2 security scheme with no scopes. The generated OAS doc does not contain a scopes object - but according to https://swagger.io/docs/specification/authentication/oauth2/, an empty scopes object should be defined (See the "No Scopes" section on that page.) This has never been an issue before, but I am using a tool that doesn't like that.
Describe the solution you'd like
For a no-scope security scheme, define an empty
scopes
object, e.g.components: securitySchemes: oAuthNoScopes: type: oauth2 flows: implicit: authorizationUrl: https://api.example.com/oauth2/authorize scopes: {}
Describe alternatives you've considered
I tried to force this using an empty
OAuthScope
object, but that did not work.Additional context
The text was updated successfully, but these errors were encountered: