laravel-openapi icon indicating copy to clipboard operation
laravel-openapi copied to clipboard

No way to add Laravel prebuild controllers

Open zeleznypa opened this issue 2 years ago • 0 comments

When the Laravel\Sanctum\Http\Controllers\CsrfCookieController is used, there is no way to add it path into schema.

Route list ignore this Controller, because it not contains #[OpenApi\PathItem] and #[OpenApi\Operation] attributes, but I can't add them there, because it is a part of third-party package.

I have to make my own extension of that controller, also part of code, that automagicaly register them to route and so one...

It will be useful to have a possibility to setup this attributes also externally in the openapi.php config file.

zeleznypa avatar May 03 '23 10:05 zeleznypa