{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/7525","repository_url":"https://api.github.com/repos/aspnet/Mvc","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/7525/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/7525/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/7525/events","html_url":"https://github.com/aspnet/Mvc/issues/7525","id":307507864,"number":7525,"title":"ApiDescriptionProvider doesn't handle task-likes","user":{"login":"rynowak","id":1430011,"avatar_url":"https://avatars1.githubusercontent.com/u/1430011?v=4","gravatar_id":"","url":"https://api.github.com/users/rynowak","html_url":"https://github.com/rynowak","followers_url":"https://api.github.com/users/rynowak/followers","following_url":"https://api.github.com/users/rynowak/following{/other_user}","gists_url":"https://api.github.com/users/rynowak/gists{/gist_id}","starred_url":"https://api.github.com/users/rynowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rynowak/subscriptions","organizations_url":"https://api.github.com/users/rynowak/orgs","repos_url":"https://api.github.com/users/rynowak/repos","events_url":"https://api.github.com/users/rynowak/events{/privacy}","received_events_url":"https://api.github.com/users/rynowak/received_events","type":"User","site_admin":false},"labels":[{"id":70264662,"url":"https://api.github.com/repos/aspnet/Mvc/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":194682270,"url":"https://api.github.com/repos/aspnet/Mvc/labels/up-for-grabs","name":"up-for-grabs","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/aspnet/Mvc/milestones/9","html_url":"https://github.com/aspnet/Mvc/milestone/9","labels_url":"https://api.github.com/repos/aspnet/Mvc/milestones/9/labels","id":673495,"number":9,"title":"Backlog","description":"Items to be considered in future releases that are currently not assigned any specific milestone.","creator":{"login":"yishaigalatzer","id":1238711,"avatar_url":"https://avatars1.githubusercontent.com/u/1238711?v=4","gravatar_id":"","url":"https://api.github.com/users/yishaigalatzer","html_url":"https://github.com/yishaigalatzer","followers_url":"https://api.github.com/users/yishaigalatzer/followers","following_url":"https://api.github.com/users/yishaigalatzer/following{/other_user}","gists_url":"https://api.github.com/users/yishaigalatzer/gists{/gist_id}","starred_url":"https://api.github.com/users/yishaigalatzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yishaigalatzer/subscriptions","organizations_url":"https://api.github.com/users/yishaigalatzer/orgs","repos_url":"https://api.github.com/users/yishaigalatzer/repos","events_url":"https://api.github.com/users/yishaigalatzer/events{/privacy}","received_events_url":"https://api.github.com/users/yishaigalatzer/received_events","type":"User","site_admin":false},"open_issues":83,"closed_issues":166,"state":"open","created_at":"2014-05-28T21:50:24Z","updated_at":"2018-03-28T21:41:20Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-03-22T05:07:52Z","updated_at":"2018-05-01T12:46:26Z","closed_at":null,"author_association":"MEMBER","body":"`DefaultApiDescriptionProvider` is responsible for populating the basic API Explorer data based on the method signature. However, we don't handle task-like return types here, and just handle `Task` and `Task<T>`\r\n\r\nhttps://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.ApiExplorer/DefaultApiDescriptionProvider.cs#L487\r\n\r\nArbitrary task-like types are supported by MVC's action invoker, but that doesn't work in API Explorer."},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/385662868","html_url":"https://github.com/aspnet/Mvc/issues/7525#issuecomment-385662868","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/7525","id":385662868,"user":{"login":"obayit","id":20386024,"avatar_url":"https://avatars0.githubusercontent.com/u/20386024?v=4","gravatar_id":"","url":"https://api.github.com/users/obayit","html_url":"https://github.com/obayit","followers_url":"https://api.github.com/users/obayit/followers","following_url":"https://api.github.com/users/obayit/following{/other_user}","gists_url":"https://api.github.com/users/obayit/gists{/gist_id}","starred_url":"https://api.github.com/users/obayit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obayit/subscriptions","organizations_url":"https://api.github.com/users/obayit/orgs","repos_url":"https://api.github.com/users/obayit/repos","events_url":"https://api.github.com/users/obayit/events{/privacy}","received_events_url":"https://api.github.com/users/obayit/received_events","type":"User","site_admin":false},"created_at":"2018-05-01T12:46:26Z","updated_at":"2018-05-01T12:46:26Z","author_association":"NONE","body":"@khellang can you help me understanding the issue:\r\nI created an action that returns ValueTask\\<int>, and the Default Api Description Provider output is :\r\nResponse Type = System.Threading.Tasks.ValueTask`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]\r\n\r\nIs the problem is that the Response Type should be \"System.Threading.Tasks.ValueTask<System.Int32>\" ?"}}
{"actor":{"display_login":"obayit"}}