私が使用しているパッケージはSwagger-phpです
現在、次を実行してswaggerファイルを生成しています:
./vendor/bin/openapi --output storage/app/swagger/swagger.json --exclude tests --exclude storage --exclude vendor ./
また、複数の API 間で共有するモデルがいくつかあるので、swagger スキーマ定義をこれらのモデルと一緒に使用したいと考えています。
./vendor/utilities/php-general-tools/src/models/
そのため、そのフォルダーを含める必要がありますが、現在は除外されています..表示されるエラーは
$ref "#/components/schemas/" not found for @OA\JsonContent() in ...