title: Springdoc GroupedOpenApi not following global parameters set with OperationCustomizer
body: <p>When using <code>GroupedOpenApi</code> to define an API group, the common set of parameters that are added to every endpoint is not present in the parameters list.
  Below are the respective codes</p>
  <pre class="lang-java prettyprint-override"><code>@Bean
  public GroupedOpenApi v1Apis() {
      return GroupedOpenApi.builder().group(&quot;v1 APIs&quot;)
              // hide all v2 APIs
              .pathsToExclude(&quot;/api/v2/**&quot;, &quot;/v2/**&quot;)
              // show all v1 APIs
              .pathsToMatch(&quot;/api/v1/**&quot;, &quot;/v1/**&quot;)
              .build();
  }
  </code></pre>
  <p>And the class to add the Standard Headers to all the endpoints</p>
  <pre class="lang-java prettyprint-override"><code>@Component
  public class GlobalHeaderAdder implements OperationCustomizer {
      @Override
      public Operation customize(Operation operation, HandlerMethod handlerMethod) {
          operation.addParametersItem(new Parameter().$ref(&quot;#/components/parameters/ClientID&quot;));
          operation.addSecurityItem(new SecurityRequirement().addList(&quot;Authorization&quot;));
          List&lt;Parameter&gt; parameterList = operation.getParameters();
          if (parameterList!=null &amp;&amp; !parameterList.isEmpty()) {
              Collections.rotate(parameterList, 1);
          }
          return operation;
      }
  }
  </code></pre>
  <p>Actual Output</p>
  <p><a href="https://i.stack.imgur.com/uX6TJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uX6TJ.png" alt="Actual Output" /></a></p>
  <p>Expected Output</p>
  <p><a href="https://i.stack.imgur.com/LnDAD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LnDAD.png" alt="Expected Output" /></a></p>
  <p><strong>Workaround</strong></p>
  <p>Adding the paths to be included/excluded in the application properties file solves the error. But something at the code level will be much appreciated.</p>