title: Making Swagger ignore a property
body: <p>I'm designing a Web API and I've enabled <strong>Swagger</strong> on it.</p>
  
  <p>My <code>Create</code> and <code>Update</code> operations share the same entity. <strong>I'm not using DTOs</strong>, but the actual <strong>Model</strong>.</p>
  
  <pre><code>class Person 
  {
       public int Id { get; set; }
       public string Name {  get; set }
  }
  </code></pre>
  
  <p>The problem is that doing this way, the <strong>Create operation is confusing</strong> to the consumers of the API, because Swagger states that accepts an <code>Id</code>, while <strong>it should not</strong>. In fact, it should be shown in the Sample data.</p>
  
  <p>Is there a good an easy way to avoid using DTOs (I hate mapping) while keeping the API free of this confusion?</p>