title: How to return generic types on ProducesResponseType Swagger?
body: <p>In the below code, you'll see a T type (generic) on the <strong>ProducesResponseType</strong>, but I'm not able to make it works since it's not a specific type:</p>
  
  <pre><code> public class ApiController&lt;T&gt; : ApiBaseController where T : class, IDocument
    {    
      protected IDataService&lt;T&gt; data = null;
  
      [HttpGet("{id}")]
      **[ProducesResponseType(typeof(T), 201)]**
      [ProducesResponseType(typeof(void), 500)]         
      public async Task&lt;IActionResult&gt; Get(string id)
      {
          var result = await data.Get(id);
  
          return Ok(result);
      }
   }
  </code></pre>
  
  <p>Any suggestions?</p>