title: Exclude ef virtual properties from swagger response
body: <p>I added Swashbuckle to a .net core web-api project using ef-core.
  My problem is that the virtual properties of my ef autogenerated classes are added to the swagger example responses, this is making the responses huge, i just want to display the table properties, not the relations.</p>
  
  <p>Example of code from the controller:</p>
  
  <pre class="lang-cs prettyprint-override"><code>[HttpGet("devices", Name = "GetDevices")]
  public async Task&lt;ActionResult&lt;List&lt;Device&gt;&gt;&gt; Devices()
  {
      var devices = await _deviceDa.GetDevices();
      return Json(devices);
  }
  </code></pre>
  
  <p>My problem is that the ef autogenerated classes are in a separated class library that i don't have access to change. I can't simply add JsonIgnore to these virtual properties.</p>
  
  <p>Is it possible to get Swashbuckle to ignore all virtual properties?</p>