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

php artisan swagger-lume:generate command gives error when upgraded to 5.6 #50

Closed
dev-erem opened this issue Apr 9, 2018 · 5 comments
Closed

Comments

@dev-erem
Copy link

dev-erem commented Apr 9, 2018

php artisan swagger-lume:generate command gives error when upgraded to 5.6

Regenerating docs

In Logger.php line 38:
                                  
  Required @OAS\Info() not found
@DarkaOnLine
Copy link
Owner

You MUST provide Info annotation. Please read OpenApi documentation! https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#infoObject

@dev-erem
Copy link
Author

dev-erem commented Apr 9, 2018

But i don't want to use OpenApi Spec 3.0, and want to stay with 2.0,
and i added this to .env of my lumen SWAGGER_VERSION = 2.0, but this doesn't work

@DarkaOnLine
Copy link
Owner

What version of swagger-php is installed? composer info | grep swagger-php

@dev-erem
Copy link
Author

dev-erem commented Apr 9, 2018

from my composer.json file
"darkaonline/swagger-lume": "^5.5"
I removed vendor directory, and then run command composer update.
and new version of swagger-lume installed swagger-php 3.0 by default. although it is not in my composer.json file, but required by your composer.json from new version.

DarkaOnLine added a commit that referenced this issue Apr 9, 2018
@DarkaOnLine
Copy link
Owner

You are right. Releasing hotfix now. Thanks!

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