title: Customize generated model names - Swagger UI
body: <p>I'm trying to adjust the "displayName" of the model being used in an automatically generated Swagger definition. </p>
  
  <p>This will only affect the Swagger names, meaning the namespace in code would be left untouched, whilst when looking at the model from Swagger UI, you'd see a custom name.</p>
  
  <p>Currently, the model name being returned from code is a namespace and looks something like this: <code>b.c.d.e.f</code>, I would like to add an attribute to the code and "mask" the name for the Swagger docs, so that when the documentation / Swagger definition gets generated it'll be displayed as <code>CustomSwaggerName</code> rather. </p>
  
  <p>I have a few API's (C#) using tools that include <code>Swashbuckle</code> (preferred) and <code>SwaggerGen</code>, but right now, I'd just like to get it working in either, if at all possible. </p>
  
  <p>I've tried using attributes that seem to look correct:</p>
  
  <pre><code>[ResponseType(typeof(Company)),DisplayName("NewCompany")]
  [SwaggerResponse(200,"NewCompany",typeof(object))]
  </code></pre>
  
  <p>With no luck. I also browsed the <a href="https://github.com/domaindrivendev/Swashbuckle" rel="noreferrer">SwashBuckle</a> git repo, hoping to find something.</p>
  
  <p>An image that should help further explain what i'm trying to achieve.
  <a href="https://i.stack.imgur.com/VwILh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VwILh.png" alt="enter image description here"></a></p>
  
  <p>I know this might seem like a strange use case but it's for a tool being written for our AWS API Gateway automation, which will use the Swagger definition for some comparisons.</p>