1
0
Fork 0
mirror of synced 2024-05-20 04:32:37 +12:00

remove leftover

This commit is contained in:
Torsten Dittmann 2021-06-04 10:23:29 +02:00 committed by GitHub
parent 45c3bc9424
commit 114578f102
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,11 +242,10 @@ App::get('/specs/:format')
->param('format', 'swagger2', new WhiteList(['swagger2', 'open-api3'], true), 'Spec format.', true)
->param('platform', APP_PLATFORM_CLIENT, new WhiteList([APP_PLATFORM_CLIENT, APP_PLATFORM_SERVER, APP_PLATFORM_CONSOLE], true), 'Choose target platform.', true)
->param('tests', 0, function () {return new Range(0, 1);}, 'Include only test services.', true)
->param('allModels', false, new Boolean(true), 'Also include unused models.', true)
->inject('utopia')
->inject('request')
->inject('response')
->action(function ($format, $platform, $tests, $allModels, $utopia, $request, $response) {
->action(function ($format, $platform, $tests, $utopia, $request, $response) {
/** @var Utopia\App $utopia */
/** @var Utopia\Swoole\Request $request */
/** @var Appwrite\Utopia\Response $response */
@ -427,11 +426,11 @@ App::get('/specs/:format')
switch ($format) {
case 'swagger2':
$format = new Swagger2($utopia, $services, $routes, $models, $keys[$platform], $authCounts[$platform] ?? 0, $allModels);
$format = new Swagger2($utopia, $services, $routes, $models, $keys[$platform], $authCounts[$platform] ?? 0);
break;
case 'open-api3':
$format = new OpenAPI3($utopia, $services, $routes, $models, $keys[$platform], $authCounts[$platform] ?? 0, $allModels);
$format = new OpenAPI3($utopia, $services, $routes, $models, $keys[$platform], $authCounts[$platform] ?? 0);
break;
default:
@ -496,4 +495,4 @@ App::get('/versions')
}
$response->json($versions);
});
});