title: Swagger - hide api version parameters
body: <p>Is it possible to hide the 'api-version' and 'x-api-version' parameters?</p>
  
  <pre><code>        services.AddApiVersioning(config =&gt;
          {
              config.ReportApiVersions = true;
              config.DefaultApiVersion = new ApiVersion(1, 0);
              config.AssumeDefaultVersionWhenUnspecified = true;
  
              config.ApiVersionReader = ApiVersionReader.Combine(
               new QueryStringApiVersionReader(),
               new HeaderApiVersionReader()
               {
                   HeaderNames = { "x-api-version" }
               });
          });
  
          services.AddVersionedApiExplorer(
              options =&gt;
              {
                  // note: the specified format code will format the version as "'v'major[.minor][-status]"
                  options.GroupNameFormat = "'v'VVV";
  
                  options.DefaultApiVersionParameterDescription = "Do NOT modify api-version!";
              });
  </code></pre>
  
  <p>I already checked <a href="https://stackoverflow.com/questions/40929916/how-to-set-up-swashbuckle-vs-microsoft-aspnetcore-mvc-versioning">how-to-set-up-swashbuckle-vs-microsoft-aspnetcore-mvc-versioning</a> which implements a 'RemoveVersionFromParameter' method, but in that case the Swagger page would loose the api version and always uses the default v1.0. As shown in the code snippet, I am using the QueryStringApiVersionReader and  HeaderApiVersionReader, but I don't want to support the url api versioning.</p>
  
  <p>Note: The API does have multiple swagger json pages for all versions (e.g. V1, V1.1, V2.0)</p>
  
  <p><a href="https://i.stack.imgur.com/607P5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/607P5.png" alt="enter image description here"></a></p>