title: springdoc-openapi-ui add JWT header parameter to generated swagger
body: <p>In my spring boot app I have endpoints which are validated by header parameter in my springboot app.
  Current swagger json looks like this:</p>
  <pre class="lang-js prettyprint-override"><code>// part of current swagger.json
  ...
    &quot;paths&quot;: {
      &quot;/path1/{param1}&quot;: {
        &quot;get&quot;: {
          &quot;parameters&quot;: [
            {
              &quot;name&quot;: &quot;param1&quot;,
              &quot;in&quot;: &quot;path&quot;,
              &quot;type&quot;: &quot;string&quot;,
              &quot;required&quot;: true
            }
          ]
        }
      }
    }
  ...
  </code></pre>
  <p>I want to add missing parameter using <code>springdoc-openapi-ui</code> configuration so it would look like this:</p>
  <pre class="lang-js prettyprint-override"><code>// I want to achieve swagger.json which contains additional parameter
  ...
    &quot;paths&quot;: {
      &quot;/path1/{param1}&quot;: {
        &quot;get&quot;: {
          &quot;parameters&quot;: [
            {
              &quot;name&quot;: &quot;param1&quot;,
              &quot;in&quot;: &quot;path&quot;,
              &quot;type&quot;: &quot;string&quot;,
              &quot;required&quot;: true
            },
            {
              &quot;name&quot;: &quot;missingParam&quot;,
              &quot;in&quot;: &quot;header&quot;,
              &quot;type&quot;: &quot;string&quot;,
              &quot;required&quot;: true
            }
          ]
        }
      }
    }
  ...
  </code></pre>
  <p>I tried achieving that by adding to my <code>appplication.yml</code> solution from <a href="https://swagger.io/docs/specification/describing-parameters/#common-for-various-paths" rel="noreferrer">Common Parameters for Various Paths</a></p>
  <pre class="lang-yaml prettyprint-override"><code>#application.yml
  ...
  components:
    parameters:
      hiddenParam:
        in: header
        name: missingParam
        required: true
        schema:
          type: string
  paths:
    /path1:
      get:
        parameters:
          - $ref: '#/components/parameters/hiddenParam'
  </code></pre>
  <p>But it doesn't work.</p>
  <p>My questions:</p>
  <ol>
  <li>Is there a way to modify my swagger result using application configuration?</li>
  <li>I want to define parameter template and add it to all endpoints, how can I achieve that?</li>
  </ol>