title: How to handle FileResponse return type of Nswag methods
body: <p>I am using Nswag to generate client library to consume an API created from .NET Core Application.
  Currently I am using actions that returns <code>IActionResult</code> to benefit from methods such as <code>return NotFound();</code> and <code>return Ok(objectValue);</code>
  If the return type is <code>IActionresult</code> generated Csharp Client methods from Nswag have return type of <code>FileResponse</code>.</p>
  
  <p>If I change return type to a certain class then the same return type is returned from the generated methods. This will prevent to use the benefits that I mentioned before.</p>
  
  <p>Usually the return type is from a known return type and never return an anonymous type.</p>
  
  <p>I have managed to get the response from reading the <code>Stream</code> from <code>FileResponse</code> and converted it to an object with a generic method <code>JsonConvert.DeserializeObject&lt;T&gt;(value);</code> but this seems to be extra work needed to be done.</p>
  
  <p>Is there anything I am missing to handle <code>FileResponse</code> return type? Is it better to change from <code>IActionResult</code> to a known object?</p>