title: Swashbuckle - Swagger execute button is not working
body: <p>I am trying to integrate swagger in Asp.Net core 3.1 Web API using Swashbuckle.AspNetCore (5.5.1) with OAS3.
  I am having one post method where I need multipart form data (two files and one string value) and for that I have applied below OperationFilter, because I don't want to specify any parameters at action level.</p>
  <pre class="lang-cs prettyprint-override"><code>public class ComparePostParamTypes : IOperationFilter
          {
              public void Apply(OpenApiOperation operation, OperationFilterContext context)
              {
  
                  var listOfOutputFormats = new List&lt;string&gt; { &quot;Rtf&quot;, &quot;Doc&quot;, &quot;DocX&quot;, &quot;Pdf&quot; };
                  var optionArray = new OpenApiArray();
                  optionArray.AddRange(listOfOutputFormats.Select(s =&gt; new OpenApiString(s)));
                  string documentOutputFormatText =
                      &quot;The format to return&quot;;
                  switch (operation.OperationId)
                  {
                      case &quot;File_Post&quot;:
                          operation.Parameters.Clear();
                          operation.Parameters = new List&lt;OpenApiParameter&gt;
                      {
                          new OpenApiParameter
                          {
                              Name = &quot;file1&quot;, In = ParameterLocation.Query,
                              Required = true,
                              Description = &quot;First Document&quot;,
                              Schema = new OpenApiSchema()
                              {
                                  Type=&quot;string&quot;,
                                  Format=&quot;binary&quot;
                              }
                          },
                          new OpenApiParameter
                          {
                              Name = &quot;file2&quot;, In = ParameterLocation.Query,
                              Required = true,
                              Description = &quot;Second Document&quot;,
                              Schema = new OpenApiSchema()
                              {
                                  Type=&quot;string&quot;,
                                  Format=&quot;binary&quot;
                              }
                          },
                          new OpenApiParameter
                          {Name = &quot;outputFormat&quot;, In = ParameterLocation.Query, Description = documentOutputFormatText,
                              Schema = new OpenApiSchema()
                              {
                                  Type=&quot;string&quot;,
                                  Enum = optionArray,
                                  Default =  new OpenApiString(&quot;Rtf&quot;),
                              }
                          }
                      };
                          break;
  
                  }
              }
  
          }
  </code></pre>
  <p>This is my controller endpoint</p>
  <pre class="lang-cs prettyprint-override"><code>        /// &lt;summary&gt;
          /// POSTing two documents as a multipart/form-data.
          /// &lt;/summary&gt;
          /// &lt;param name=&quot;cancellationToken&quot;&gt;&lt;/param&gt;
          /// &lt;returns&gt;The result in the specified format (see outputFormat parameter)&lt;/returns&gt;
          /// &lt;remarks&gt;
          /// Pass two document and output format&lt;/remarks&gt;
          /// &lt;response code=&quot;200&quot;&gt;OK&lt;/response&gt;
          /// &lt;response code=&quot;500&quot;&gt;Internal error&lt;/response&gt;
          /// &lt;response code=&quot;403&quot;&gt;Forbidden&lt;/response&gt;
          /// &lt;response code=&quot;422&quot;&gt;UnprocessableEntity&lt;/response&gt;
          /// &lt;response code=&quot;503&quot;&gt;ServiceUnavailable&lt;/response&gt;
          /// &lt;response code=&quot;400&quot;&gt;BadRequest&lt;/response&gt;
          [Produces(&quot;application/pdf&quot;, &quot;application/msword&quot;, &quot;application/zip&quot;)]
          [Consumes(&quot;multipart/form-data&quot;)]
          [ProducesResponseType(StatusCodes.Status200OK, Type = null)]
          [ProducesResponseType(StatusCodes.Status500InternalServerError, Type = null)]
          [ProducesResponseType(StatusCodes.Status403Forbidden, Type = null)]
          [ProducesResponseType(StatusCodes.Status422UnprocessableEntity, Type = null)]
          [ProducesResponseType(StatusCodes.Status503ServiceUnavailable, Type = null)]
          [ProducesResponseType(StatusCodes.Status400BadRequest, Type = null)]
          [HttpPost(Name =&quot;File_Post&quot;)]
          public IActionResult Post()
          {
              var builBoundary  = Request.GetMultipartBoundary();
              return Ok(builBoundary);
          }
  </code></pre>
  <p>Correct Swagger UI is rendered</p>
  <p><a href="https://i.stack.imgur.com/5Hahv.png" rel="nofollow noreferrer">Swagger UI</a></p>
  <p>But when I clicked on <strong>execute button</strong> after attaching files nothing happened.</p>
  <p>This is generated swagger JSON</p>
  <pre><code>{
    &quot;openapi&quot;: &quot;3.0.1&quot;,
    &quot;info&quot;: {
      &quot;title&quot;: &quot;Demo&quot;,
      &quot;version&quot;: &quot;v1&quot;
    },
    &quot;paths&quot;: {
      &quot;/File&quot;: {
        &quot;post&quot;: {
          &quot;tags&quot;: [
            &quot;File&quot;
          ],
          &quot;summary&quot;: &quot;POSTing two documents as a multipart/form-data.&quot;,
          &quot;description&quot;: &quot;Pass two document and output format&quot;,
          &quot;operationId&quot;: &quot;File_Post&quot;,
          &quot;parameters&quot;: [
            {
              &quot;name&quot;: &quot;file1&quot;,
              &quot;in&quot;: &quot;query&quot;,
              &quot;description&quot;: &quot;First Document&quot;,
              &quot;required&quot;: true,
              &quot;schema&quot;: {
                &quot;type&quot;: &quot;string&quot;,
                &quot;format&quot;: &quot;binary&quot;
              }
            },
            {
              &quot;name&quot;: &quot;file2&quot;,
              &quot;in&quot;: &quot;query&quot;,
              &quot;description&quot;: &quot;Second Document&quot;,
              &quot;required&quot;: true,
              &quot;schema&quot;: {
                &quot;type&quot;: &quot;string&quot;,
                &quot;format&quot;: &quot;binary&quot;
              }
            },
            {
              &quot;name&quot;: &quot;outputFormat&quot;,
              &quot;in&quot;: &quot;query&quot;,
              &quot;description&quot;: &quot;The format to return&quot;,
              &quot;schema&quot;: {
                &quot;enum&quot;: [
                  &quot;Rtf&quot;,
                  &quot;Doc&quot;,
                  &quot;DocX&quot;,
                  &quot;Pdf&quot;
                ],
                &quot;type&quot;: &quot;string&quot;,
                &quot;default&quot;: &quot;Rtf&quot;
              }
            }
          ],
          &quot;responses&quot;: {
            &quot;200&quot;: {
              &quot;description&quot;: &quot;OK&quot;
            },
            &quot;500&quot;: {
              &quot;description&quot;: &quot;Internal error&quot;
            },
            &quot;403&quot;: {
              &quot;description&quot;: &quot;Forbidden&quot;
            },
            &quot;422&quot;: {
              &quot;description&quot;: &quot;UnprocessableEntity&quot;
            },
            &quot;503&quot;: {
              &quot;description&quot;: &quot;ServiceUnavailable&quot;
            },
            &quot;400&quot;: {
              &quot;description&quot;: &quot;BadRequest&quot;
            }
          }
        }
      }
    },
    &quot;components&quot;: { }
  }
  
  </code></pre>
  <p>Please tell me what should I do to fix this.</p>