Skip to content

Commit 2d252cf

Browse files
authored
Merge pull request #755 from dunglas/fix_ui
Fix Swagger UI integration
2 parents f9c2cc9 + 26883a6 commit 2d252cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bridge/Symfony/Bundle/Resources/views/SwaggerUi/index.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848
});
4949
50-
{% if operationId is defined %}
50+
{% if operationId is not null %}
5151
{% set domId = '#' ~ shortName ~ '_' ~ operationId %}
5252
{% set id = app.request.attributes.get('id') %}
5353
@@ -72,7 +72,7 @@
7272
onFailure: function() {
7373
log('Unable to Load SwaggerUI');
7474
},
75-
docExpansion: {% if operationId is defined %}'none'{% else %}'list'{% endif %},
75+
docExpansion: 'list',
7676
jsonEditor: false,
7777
defaultModelRendering: 'schema',
7878
showRequestHeaders: true

0 commit comments

Comments
 (0)