Nader_look's avatar

Laravel swagger annotation Required @OA\Info() not found

Hey, everyone,i try to build documentation for my API using swagger annotation @SWG\Swagger when I run php artisan l5-swagger:generate not able to parse and appear : ErrorException : Required @OA\Info() not found but I'm not using openApi annotation in the project

0 likes
1 reply
Ali Al Eisa's avatar

Hello, you should Add in your base Controller before Class name if not found there

/**

  • @OA\Info(
  • version="1.0",
  • title="Example API",
  • description="Example info",
  • @OA\Contact(name="Swagger API Team")
  • )

*/

Please or to participate in this conversation.