DarkaOnLine / L5-Swagger

OpenApi or Swagger integration to Laravel
https://github.com/DarkaOnLine/L5-Swagger
MIT License
2.64k stars 394 forks source link

Compatible issues with zircote/swagger-php #566

Closed WartVader closed 10 months ago

WartVader commented 10 months ago

Description:

In one day on our dev server stopped working our l5-swagger:generate command and always drop an error of @OA\PathItem was not found, so we go to check what was an issue and after some research we discovered, that l5-swagger is incompatible (might be) with package zircote/swagger-php with version 4.8.1 (on local machine we got 4.7.10 and generating on local machine was fine)

Steps To Reproduce:

Set zircote/swagger-php in your require field in composer to version 4.8.1, and l5-swagger to 8.5.0 and you might get the same error on generating docs. Error that we got: telegram-cloud-photo-size-2-5456173853106624610-y

DarkaOnLine commented 10 months ago

They removed doctrine/annotations https://github.com/zircote/swagger-php/pull/1516/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R8 and now it needs to be installed optionally :(

We might need to add them as requirement for this package