title: Is there a way to import test files into redoc x-codeSamples source field?
body: <p>The redoc guide specifies using raw text as source in a code sample:
  <a href="https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md#x-codeSamples" rel="nofollow noreferrer">https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md#x-codeSamples</a>
  like so:</p>
  <pre><code>lang: JavaScript
  source: console.log('Hello World');
  </code></pre>
  <p>however I would like to keep my OpenApi3.0 YAML a living document, so would prefer to actually import code directly from test files, ex:</p>
  <pre><code>lang: JavaScript
  source: #/tests/js_api_test.js
  </code></pre>
  <p>where the contents of <code>js_api_test.js</code> is just:</p>
  <pre><code>console.log('Hello World');
  </code></pre>
  <p>this way the imported code could be <em>guaranteed</em> to work as long as the tests are passing - keeping the document living.</p>
  <p>Given I am already relying on generating lots of boilerplate off of the YAML file it seems ideal to keep all aspects of the file living.</p>
  <p>Thanks in advance!</p>