Skip to content

Commit

Permalink
chore: fix swagger-ui rendering error (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
ubogdan authored Apr 28, 2022
1 parent be4f2b3 commit 80f04ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ const indexTemplate = `<!-- HTML for static distribution bundle build -->
</defs>
</svg>
<div id="swagger-ui"></div>
<div id="{{.DomID}}"></div>
<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
Expand All @@ -239,7 +239,7 @@ window.onload = function() {
deepLinking: {{.DeepLinking}},
docExpansion: "{{.DocExpansion}}",
persistAuthorization: {{.PersistAuthorization}},
dom_id: "{{.DomID}}",
dom_id: "#{{.DomID}}",
validatorUrl: null,
presets: [
SwaggerUIBundle.presets.apis,
Expand Down

0 comments on commit 80f04ba

Please sign in to comment.