title: How to open local files in Swagger-UI
body: <p>I'm trying to open my self generated swagger specification file <code>my.json</code> with <a href="https://github.com/swagger-api/swagger-ui">swagger-ui</a> on my local computer.</p>
  
  <p>So I <a href="https://github.com/swagger-api/swagger-ui/archive/v2.1.8-M1.zip">downloaded</a> the latest tag v2.1.8-M1 and extracted the zip. Then I went inside the sub folder <code>dist</code> and copied the file <code>my.json</code> into it. Now I opened the <code>index.html</code> and want to explore <code>my.json</code>. And here the problem begins:</p>
  
  <p><a href="https://i.stack.imgur.com/0Gh9l.png"><img src="https://i.stack.imgur.com/0Gh9ls.png" alt="File in windows explorer"></a> <a href="https://i.stack.imgur.com/mUlCb.png"><img src="https://i.stack.imgur.com/mUlCbs.png" alt="Enter path to file in bar"></a> <a href="https://i.stack.imgur.com/j9bfa.png"><img src="https://i.stack.imgur.com/j9bfas.png" alt="Will be prefixed by current url and cannot find the file"></a></p>
  
  <p>If I enter a local path, it always will be prefixed by the current url containing the <code>index.html</code>. And therefor I can't open my file. I tried all following combinations without success:</p>
  
  <ul>
  <li><code>my.json</code> leads to <code>file:///D:/swagger-ui/dist/index.html/my.json</code></li>
  <li><code>file:///D:/swagger-ui/dist/my.json</code> leads to <code>file:///D:/swagger-ui/dist/index.html/file:///D:/swagger-ui/dist/my.json</code></li>
  </ul>