We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description: Empty scopes for a security definition ends up being an empty array. It should be an empty object.
Use the following security definitions:
'securityDefinitions' => [ 'securitySchemes' => [ 'oauth2' => [ 'type' => 'oauth2', 'description' => 'OAuth2 login', 'flows' => [ 'password' => [ 'tokenUrl' => '/some/token/url', 'refreshUrl' => '/some/refresh/url', 'scopes' => [], ], ], ], ], 'security' => [ 'oauth2' => [], ], ],
Generate the documentation.
You'll end up with
"securitySchemes": { "oauth2": { "type": "oauth2", "description": "OAuth2 login", "flows": { "password": { "tokenUrl": "/some/token/url", "refreshUrl": "/some/refresh/url", "scopes": [] } } } }
Note the "scopes": []? That should be "scopes": {}. See: https://swagger.io/docs/specification/authentication/oauth2/#no-scopes.
"scopes": []
"scopes": {}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description:
Empty scopes for a security definition ends up being an empty array. It should be an empty object.
Steps To Reproduce:
Use the following security definitions:
Generate the documentation.
You'll end up with
Note the
"scopes": []
? That should be"scopes": {}
. See: https://swagger.io/docs/specification/authentication/oauth2/#no-scopes.The text was updated successfully, but these errors were encountered: