You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: load swagger even when conf is false
* fix: change aliases and definitions for swagger disabled in tests
* fix: manage necessary services loading
* fix typo
if (!$config['enable_swagger'] && $config['enable_swagger_ui']) {
379
+
thrownewRuntimeException('You can not enable the Swagger UI without enabling Swagger, fix this by enabling swagger via the configuration "enable_swagger: true".');
380
380
}
381
381
382
382
$loader->load('json_schema.xml');
383
-
$loader->load('swagger.xml');
383
+
384
+
if (!$config['enable_swagger']) {
385
+
return;
386
+
}
387
+
384
388
$loader->load('openapi.xml');
389
+
$loader->load('swagger.xml');
385
390
$loader->load('swagger-ui.xml');
386
391
387
392
if (!$config['enable_swagger_ui'] && !$config['enable_re_doc']) {
0 commit comments