Skip to content

Commit

Permalink
Merge pull request api-platform#755 from dunglas/fix_ui
Browse files Browse the repository at this point in the history
Fix Swagger UI integration
  • Loading branch information
dunglas committed Sep 19, 2016
2 parents 28c60a1 + 4ef84ae commit 09f815c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}
});
{% if operationId is defined %}
{% if operationId is not null %}
{% set domId = '#' ~ shortName ~ '_' ~ operationId %}
{% set id = app.request.attributes.get('id') %}
Expand All @@ -72,7 +72,7 @@
onFailure: function() {
log('Unable to Load SwaggerUI');
},
docExpansion: {% if operationId is defined %}'none'{% else %}'list'{% endif %},
docExpansion: 'list',
jsonEditor: false,
defaultModelRendering: 'schema',
showRequestHeaders: true
Expand Down

0 comments on commit 09f815c

Please sign in to comment.