title: Akka Http Swagger setup - 406 application/octet-stream when referencing other file
body: <p>I'm trying to set up Swagger in a Scala project and running into issues referencing schemas in another file.</p>
  <p>My folder structure for this is (the swagger folder has all the swagger-ui stuff):</p>
  <ul>
  <li>docs
  <ul>
  <li>swagger.yml</li>
  <li>models
  <ul>
  <li>test_model.yaml</li>
  </ul>
  </li>
  <li>swagger
  <ul>
  <li>index.html</li>
  <li>swagger-ui.css etc....</li>
  </ul>
  </li>
  </ul>
  </li>
  </ul>
  <p>My swagger file references the index.html file and it loads fine.  All schemas that I define inside the swagger.yml file are loading and showing up correctly.  However, when I try to reference a file inside models such as test_model.yaml.  I get a 406 error on it loading the test_model.yaml file</p>
  <pre><code>Resource representation is only available with these types:
  application/octet-stream
  </code></pre>
  <p>My akka set up for the routes for this is:</p>
  <pre><code>path(&quot;swagger&quot;) {
        getFromFile(&quot;docs/swagger/index.html&quot;) } ~
        getFromDirectory(&quot;docs/swagger&quot;) ~
        getFromDirectory(&quot;docs&quot;)
  </code></pre>
  <p>The first two seem to do what I expect.  My swagger ui page loads correctly and all of my routes/schemas defined in swagger.yml load fine.  However, when I use</p>
  <pre><code>$ref: './models/test_model.yaml#/components/schemas/Test'
  </code></pre>
  <p>It throws a 406 error when trying to load the test_model.yaml file.  The schemas are all defined correctly and if I keep them defined in the original swagger.yml file and reference them inside there it works fine.  It is only when I put them into an outside file.</p>