title: BeanConfig (or similar?) in Swagger 2.0 (OpenApi 3.0)
body: <p>I am currently migrating our API docs (which were Swagger 1.5) to Swagger 2.0 (OpenApi 3.0)</p>
  
  <p>The API docs are Swagger docs which get generated with java annotations using maven packages <code>swagger-annotations</code> and <code>swagger-jaxrs</code>. I have already updated the pom.xml with new versions so it looks like:</p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;io.swagger.core.v3&lt;/groupId&gt;
              &lt;artifactId&gt;swagger-annotations&lt;/artifactId&gt;
              &lt;version&gt;2.0.6&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.swagger.core.v3&lt;/groupId&gt;
              &lt;artifactId&gt;swagger-jaxrs2&lt;/artifactId&gt;
              &lt;version&gt;2.0.6&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>And also all the old annotations are replaced with the new ones (which change quite a lot) and looks fine.</p>
  
  <p>The thing is we were using a <code>BeanConfig</code> to define the docs general config and auto-scan all the REST resources so the documentation got generated automatically at <code>/swagger.json</code>.</p>
  
  <p>The <strong>problem</strong> is I can't find the "new way" of doing such thing as creating a BeanConfig and auto-scan the resources so everything gets generated at <code>/swagger.json</code> or <code>/openapi.json</code> (maybe now is something like OpenAPIDefinition?)</p>
  
  <p>If somebody could point me to the right direction I would be very grateful...</p>