Skip to content
New issue

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

Empty "scopes" bug #407

Closed
GSokol opened this issue May 26, 2017 · 0 comments
Closed

Empty "scopes" bug #407

GSokol opened this issue May 26, 2017 · 0 comments

Comments

@GSokol
Copy link
Contributor

GSokol commented May 26, 2017

If I make empty scopes in security scheme:

<?php

use Swagger\Annotations as SWG;

/**
 * @SWG\SecurityScheme(
 *     securityDefinition="oauth",
 *     type="oauth2",
 *     flow="password",
 *     tokenUrl="<SOME_URL>",
 *     scopes={}
 * )
 */

it produces invalid swagger.json:

{
// ...
    "securityDefinitions": {
        "oauth": {
            "type": "oauth2",
            "flow": "password",
            "tokenUrl": "http://dev.oauth.platoon.scnetservices.ru/oauth/v2/token",
            "scopes": {}
        }
    }
// ...
}
GSokol added a commit to GSokol/swagger-php that referenced this issue May 26, 2017
bfanger pushed a commit that referenced this issue May 26, 2017
@bfanger bfanger closed this as completed May 26, 2017
bfanger added a commit that referenced this issue Aug 16, 2017
- Implemented Swagger->ref(). $swagger->ref('#/info/contact') === $swagger->info->contact
- Added validation of internal refs.
- Misc typos and improved unittests #357, #399, #402, #407, #423, #424
- Misc improvements to the documentation.
jcherniak added a commit to jcherniak/swagger-php that referenced this issue Dec 25, 2019
bfanger pushed a commit that referenced this issue May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants