Closed
Description
Today, when you return an IResult
from a minimal action, you lose all metadata about the type of the response (see #33433). You can add the metadata back with something like [ProducesResponseType(typeof(Person), 201]
, but in many cases the response type could be inferred from the IResult
implementation if we designed a way for this to work.
The most obvious idea is to do like ActionResult<TValue>
though implicit conversions with interfaces might make this tricky.