title: Generate with nswag an openAPI document including swashbuckle custom operation filters
body: <p>I'm using Swashbuckle in an ASP .NET MVC application which is configured with additional operation filters like so:</p>
  <pre><code> GlobalConfiguration.Configuration
                  .EnableSwagger(c =&gt; {
                      c.OperationFilter&lt;FooOpeartionFilter&gt;();
                      c.OperationFilter&lt;BarOpeartionFilter&gt;();
                      //other confs
                      ...
  </code></pre>
  <p>In my .NET client application, I would like to automatically create API client code based on a .NET <code>MvcApplication.dll</code> which includes the Controller definitions.</p>
  <p>For this I use NSWAG. I run firstly webapi2openapi to generate the openapi.json document</p>
  <pre><code>nswag webapi2openapi /assembly:MvcApplication.dll /output:MvcApplication.OpenApi.json 
  </code></pre>
  <p>and then for creation of the client c# code:</p>
  <pre><code>nswag run configuration.nswag
  </code></pre>
  <p>with the <code>configuration.nswag</code> pointing to the <code>MvcApplication.OpenApi.json</code></p>
  <pre><code>  &quot;documentGenerator&quot;: {
      &quot;fromDocument&quot;: {
        &quot;url&quot;: &quot;PATH\MvcApplication.OpenApi.json&quot;
      }
    },
  </code></pre>
  <p>but the created openAPI document <code>MvcApplication.OpenApi.json</code> is lacking of changes to the API which the additional <code>OperationFilters</code> are providing. As I understand, this is expected as the Operation filters are added on asp .net application startup and we create the .json from a static .dll.</p>
  <p>Is there a way to include the operation filters to the created <code>MvcApplication.OpenApi.json</code> based on a <code>MvcApplication.dll</code>? Is this possible? I have search for answer in the <code>nswag help</code> and navigated to <code>Command: webapi2openapi</code>, but non of the listed parameters seems to add those operation filters. Or maybe should I change my ASP .NET code and use NSWAG instead of swashbuckle?</p>