RonasIT / laravel-swagger

Laravel-Swagger is a fully automate tool which allows to generate and save swagger-based documentation after successful completing your application's feature tests.
https://ronasit.com
MIT License
148 stars 43 forks source link

Id in route #119

Closed donjenflo closed 8 months ago

donjenflo commented 8 months ago

Hello! Pls help Route like as Route::post('sing-in-as/{id}', [ProfileController::class, 'singInAs']); gives an error _TypeError: arrayslice(): Argument #1 ($array) must be of type array, string given in /var/www/html/vendor/ronasit/laravel-swagger/src/Services/SwaggerService.php:296 Without AutoDocMiddleware test fine

donjenflo commented 8 months ago

image Its ok, but rename dataFOO to data make problem. But I use this response structure for all my routes and its ok when route dont have {id}

donjenflo commented 8 months ago

image ALL OK