title: swagger swashbuckle does not support nested class as action method parameter
body: <p>I am using asp.net 5</p>
  <p>I have two model class, which are nested, both of the inner class are named <code>Command</code></p>
  <pre><code>public class EditModel
  {
     public class Command
     {
        public int Id { get; set; }
        public string Info { get; set; }
     }
  }
  </code></pre>
  <p>and</p>
  <pre><code>public class CreateModel
  {
      public class Command
      {
          public int Id { get; set; }
          public string Info { get; set; }
      }
  }
  </code></pre>
  <p>In my Controller class has two methods</p>
  <pre><code>    [HttpPost]
      public IActionResult PutData(CreateModel.Command model)
      {
          return Ok();
      }
  
      [HttpPut]
      public IActionResult PostData(EditModel.Command model)
      {
          return Ok();
      }
  </code></pre>
  <p>Since for both Put and Post's query I am using nested class both name <code>Command</code>, Swagger will return the following error</p>
  <blockquote>
  <p>An unhandled exception has occurred while executing the request.
  Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Conflicting method/path combination &quot;PUT Test&quot; for actions -
  TestSwagger.Controllers.TestController.PutData
  (TestSwagger),TestSwagger.Controllers.TestController.PostData
  (TestSwagger). Actions require a unique method/path combination for
  Swagger/OpenAPI 3.0. Use ConflictingActionsResolver as a workaround
  at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperations(IEnumerable<code>1 apiDescriptions, SchemaRepository schemaRepository) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GeneratePaths(IEnumerable</code>1
  apiDescriptions, SchemaRepository schemaRepository)
  at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String
  documentName, String host, String basePath)
  at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext
  httpContext, ISwaggerProvider swaggerProvider)
  at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext
  context)</p>
  </blockquote>
  <p>Swagger will work, if I change one of the Command model name to something different.
  Yet, I believe this nested class model name is legit and should work with swagger also.  If there a way to work around this.  Thanks</p>