title: Swashbuckle custom schema for each method
body: <p>I am having API method which requires object of class like this:</p>
  <pre><code>public class MyObject
  {
      public int ID { get; set; }
      public string Name { get; set; }
  }
  </code></pre>
  <p>Now I have two API calls &gt; <code>Insert</code> and <code>Update</code></p>
  <p><code>Insert</code> method requires only <code>Name</code> from that object but <code>Update</code> needs <code>ID</code> also.</p>
  <p>What I want to achieve is to somehow hide <code>ID</code> from schema displayed under function inside swagger for function <code>Insert</code> but show it under <code>ID</code>.</p>
  <p>Schema I am talking about is inside picture:
  <a href="https://i.stack.imgur.com/DZuaC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DZuaC.png" alt="" /></a></p>
  <p>I can hide <code>ID</code> from everywhere by adding <code>[JsonIgnore]</code> but it doesn't solve my problem since I want to show that field inside <code>Update</code></p>