title: Swagger showing incorrect query param
body: <p>I have this controller and action method:</p>
  
  <pre><code>[ApiController]
  [Route("api/[controller]")]
  public class AppointmentController : ControllerBase
  {        
      [Route("{provider}/AvailableSlots")]
      [HttpGet]        
      public Task&lt;AvailableSlotsResponse&gt; GetAvailableSlots(Request&lt;AvailableSlotsRequest&gt; request)
      {
          return null;
      }
  }
  </code></pre>
  
  <p>Here's the model:</p>
  
  <pre><code>    public class Request&lt;T&gt; where T : class
      {
          [FromRoute]
          public string Provider { get; set; }
          [FromQuery(Name = "")]
          public T Model { get; set; }
      }
  
      public class AvailableSlotsRequest
      {
          //[FromQuery(Name = "Location")] //Would prefer not to have to use this
          public string Location { get; set; }
      }
  </code></pre>
  
  <p>I need to use <code>Location</code> as the query param name in the URL in order to hit the endpoint, as expected. </p>
  
  <p>eg. <code>http://localhost/api/Appointment/Company/AvailableSlots?Location=SYD</code></p>
  
  <p>However, when I view the Swagger page, the parameter is called <code>Model.Location</code> which is confusing for consumers of my API:</p>
  
  <p><a href="https://i.stack.imgur.com/aCbzZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aCbzZ.jpg" alt="swagger"></a></p>
  
  <p>I can use <code>[FromQuery(Name = "Location")]</code> to force Swagger to display <code>Location</code>, however this feels very redundant and duplicates the property name.</p>
  
  <p>Here is my Swagger set up in <code>ConfigureServices()</code>:</p>
  
  <pre><code>services.AddSwaggerDocument(document =&gt;
              {
                  document.PostProcess = d =&gt;
                  {
                      d.Info.Version = Configuration["APIVersion"];
                      d.Info.Title = $"{Configuration["ApplicationName"]} {Configuration["DomainName"]} API";
                  };
              });
  </code></pre>
  
  <p>How can I make Swagger display <code>Location</code> instead of <code>Model.Location</code>, without having to duplicate the word "Location" in the <code>[FromQuery]</code> attribute?</p>