SwaggerLume
SwaggerLume copied to clipboard
[Lumen 5.7] Class 'SwaggerLume\ServiceProvider' not found
I have an error while installing SwaggerLume to Limen 5.7 bootstrap/app.php:
$app->configure('swagger-lume');
$app->register(\SwaggerLume\ServiceProvider::class);
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
What kind of error :)
When i try to generate docs, i got an error. It's 5.7 Command => php artisan swagger-lume:generate
Regenerating docs
In Logger.php line 39:
Required @OA\Info() not found
@furkankadioglu Are you solve this issue?
@OA\Info() is a required annotation. Please read OpenApi documentation
i got this error
Call to undefined method Laravel\Lumen\Application::group()
after add
$app->register(\SwaggerLume\ServiceProvider::class);
at bootstrap/app.php
laravel 5.8
@furkankadioglu You have to use @OA\Info like that:
@OA\Info( title="Auth Controller", version="test")
Like @DarkaOnLine , you must read OpenApi documentation for understand how and where to put these annotations on your code.
install again : composer require "darkaonline/swagger-lume:8.*"