File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181- Fixed cURL error message assertions for cross-version compatibility
8282- Fixed SleekDB paginator query-state regression where ` count() ` could clear criteria before paginated data fetch on the same model instance (#514 )
8383- Standardized ` defineValidationRules(Request $request): void ` across DemoWeb and DemoApi middleware templates
84+ - Fixed OpenAPI installer route generation to return ` Response ` objects via ` response()->... ` helpers and avoid undefined response-variable usage (#520 )
8485- Standardized ` defineValidationRules(Request $request): void ` in Toolkit middleware templates
8586
8687### Added
Original file line number Diff line number Diff line change @@ -192,13 +192,13 @@ private function openapiRoutes(string $module): string
192192 {
193193 return 'return function ($route) {
194194 $route->group("openapi", function ($route) {
195- $route->get("docs", function (Quantum\Http\Response $response) {
196- $ response->html(partial("openApi/openApi"));
195+ $route->get("docs", function (): Quantum\Http\Response {
196+ return response() ->html(partial("openApi/openApi"));
197197 });
198198
199- $route->get("spec", function (Quantum\Http\Response $response) {
199+ $route->get("spec", function (): Quantum\Http\Response {
200200 $fs = Quantum\Storage\Factories\FileSystemFactory::get();
201- $ response->json($fs->getJson(modules_dir() . " ' . DS . $ module . DS . 'resources ' . DS . 'openapi ' . DS . 'spec.json"));
201+ return response() ->json($fs->getJson(modules_dir() . " ' . DS . $ module . DS . 'resources ' . DS . 'openapi ' . DS . 'spec.json"));
202202 });
203203 }); ' . PHP_EOL ;
204204 }
You can’t perform that action at this time.
0 commit comments