Files
swagger-ui/test/e2e-cypress/static/pages/5138/index.html
kyle 0047ce96a8 fix: don't trigger url remote document load if urls is provided (via #5161)
* fix: don't trigger `url` remote document load if `urls` is provided

* better test block title
2019-02-06 19:32:35 -06:00

1.7 KiB

<html lang="en"> <head> <style> html { box-sizing: border-box; overflow: -moz-scrollbars-vertical; overflow-y: scroll; } *, *:before, *:after { box-sizing: inherit; } body { margin: 0; background: #fafafa; } </style> </head>
<script src="/swagger-ui-bundle.js"> </script> <script src="/swagger-ui-standalone-preset.js"> </script> <script> window.onload = function () { window["SwaggerUIBundle"] = window["swagger-ui-bundle"] window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"] // Build a system const ui = SwaggerUIBundle({ url: "https://petstore.swagger.io/v2/swagger.json", urls: [ { name: "USPTO", url: "./uspto.yaml" }, { name: "Examples", url: "./api-with-examples.yaml" }, ], dom_id: '#swagger-ui', presets: [ SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset ], plugins: [ SwaggerUIBundle.plugins.DownloadUrl ], layout: "StandaloneLayout", onComplete: () => { if (window.completeCount) { window.completeCount++ } else { window.completeCount = 1 } } }) window.ui = ui } </script> </html>