title: OpenApi Generator reference an external POJO in YAML file specification
body: <p>I'm using <code>OpenApi v3.3.4</code> (formerly called <code>Swagger CodeGen</code>) maven plugin to generate my rest controller via <code>api.yml</code> files where I describe all the operations I want to expose.</p>
  <p>In my use case, I want to expose a method <code>POST: handleNotification(@RequestBody SignatureNotification notification)</code> which its request body's type is generated via another maven-plugin in <code>/targer</code> folder.</p>
  <p>Actually I'm defining <code>SignatureNotification</code> in <code>Components</code>part of my .yml file:</p>
  <pre><code>...
  requestBody:
          required: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignatureNotification'
  ...
  </code></pre>
  <p>Which gets generated by OpenApi plugin and then I map it to <code>SignatureNotification</code> that already exists and has the same attributes.</p>
  <p>I'm not very satisfied with this solution so I want to know if there is a way to tell OpenApi Generator to use an external object as a reference?</p>