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

Ignoring annotation issue #17

Open
waqar-scorchsoft opened this issue Aug 13, 2018 · 0 comments
Open

Ignoring annotation issue #17

waqar-scorchsoft opened this issue Aug 13, 2018 · 0 comments

Comments

@waqar-scorchsoft
Copy link

waqar-scorchsoft commented Aug 13, 2018

Class RestController
@package api\controllers
@SWG\Swagger(
     basePath="/api",
     produces={"application/json"},
     consumes={"application/x-www-form-urlencoded"},
     schemes={"http"},
     @SWG\Info(
         version="1.0.0",
         title="Api",
         @SWG\Contact(name="Author", email="author@example.com"),
     ),
    @SWG\SecurityScheme(
         securityDefinition="Bearer",
         type="apiKey",
         in="header",
         name="Authorization",
         description="Auth Bearer Token format as 'Bearer <access_token>'
    )
 )

For some reason the this section is completely ignored by parser.
This generated result for the api is:
{"swagger":"2.0","paths":{"/api/login":{"post":{"tags":["User"]...
Which is clearly missing the basePath, info and security definitions.

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

1 participant