title: Custom generation of Model documentation using Swashbuckle
body: <p>I am using Swashbuckle to generate swagger documentation for an ASP.NET core API I am writing. In my API, I am using a lot of custom Json converters, so the json I am receiving and returning doesn't look exactly like how the C# class is defined. For example, I may have a class like this:</p>
  
  <pre><code>public class MyModel
  {
      private MyClass complicatedField;
  }
  </code></pre>
  
  <p>which will be serialized as</p>
  
  <pre><code>{
      "complicatedField": "String representation of the object"
  }
  </code></pre>
  
  <p>However, Swashbuckle documents it as</p>
  
  <pre><code>{
      "complicatedField": {/*Json object of all the fields MyClass has*/}
  }
  </code></pre>
  
  <p>How do I tell Swashbuckle how my models get serialized and deserialized?</p>