1
Vote

ApiExplorer should not return response formatters when an action returns HttpResponseMessage or task version of it.

description

For the following actions, ApiExplorer shouldn't be returning the response formats as the response format is really ambiguous:

public HttpResponseMessage GetData()
    {
        return new HttpResponseMessage();
    }

    public Task<HttpResponseMessage> GetTaskOfData()
    {
        TaskCompletionSource<HttpResponseMessage> tcs = new TaskCompletionSource<HttpResponseMessage>();
        tcs.SetResult(new HttpResponseMessage());
        return tcs.Task;
    }
  • low pri probably.
  • attached a standalone repro.

file attachments

comments