{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Docs/issues/8007","repository_url":"https://api.github.com/repos/aspnet/Docs","labels_url":"https://api.github.com/repos/aspnet/Docs/issues/8007/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Docs/issues/8007/comments","events_url":"https://api.github.com/repos/aspnet/Docs/issues/8007/events","html_url":"https://github.com/aspnet/Docs/issues/8007","id":349172332,"node_id":"MDU6SXNzdWUzNDkxNzIzMzI=","number":8007,"title":"[ProducesResponseType(200)] - Line of code removes Model documentation from Swagger UI","user":{"login":"DanJ210","id":16159685,"node_id":"MDQ6VXNlcjE2MTU5Njg1","avatar_url":"https://avatars1.githubusercontent.com/u/16159685?v=4","gravatar_id":"","url":"https://api.github.com/users/DanJ210","html_url":"https://github.com/DanJ210","followers_url":"https://api.github.com/users/DanJ210/followers","following_url":"https://api.github.com/users/DanJ210/following{/other_user}","gists_url":"https://api.github.com/users/DanJ210/gists{/gist_id}","starred_url":"https://api.github.com/users/DanJ210/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanJ210/subscriptions","organizations_url":"https://api.github.com/users/DanJ210/orgs","repos_url":"https://api.github.com/users/DanJ210/repos","events_url":"https://api.github.com/users/DanJ210/events{/privacy}","received_events_url":"https://api.github.com/users/DanJ210/received_events","type":"User","site_admin":false},"labels":[{"id":943989428,"node_id":"MDU6TGFiZWw5NDM5ODk0Mjg=","url":"https://api.github.com/repos/aspnet/Docs/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"scottaddie","id":10702007,"node_id":"MDQ6VXNlcjEwNzAyMDA3","avatar_url":"https://avatars3.githubusercontent.com/u/10702007?v=4","gravatar_id":"","url":"https://api.github.com/users/scottaddie","html_url":"https://github.com/scottaddie","followers_url":"https://api.github.com/users/scottaddie/followers","following_url":"https://api.github.com/users/scottaddie/following{/other_user}","gists_url":"https://api.github.com/users/scottaddie/gists{/gist_id}","starred_url":"https://api.github.com/users/scottaddie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottaddie/subscriptions","organizations_url":"https://api.github.com/users/scottaddie/orgs","repos_url":"https://api.github.com/users/scottaddie/repos","events_url":"https://api.github.com/users/scottaddie/events{/privacy}","received_events_url":"https://api.github.com/users/scottaddie/received_events","type":"User","site_admin":false},"assignees":[{"login":"scottaddie","id":10702007,"node_id":"MDQ6VXNlcjEwNzAyMDA3","avatar_url":"https://avatars3.githubusercontent.com/u/10702007?v=4","gravatar_id":"","url":"https://api.github.com/users/scottaddie","html_url":"https://github.com/scottaddie","followers_url":"https://api.github.com/users/scottaddie/followers","following_url":"https://api.github.com/users/scottaddie/following{/other_user}","gists_url":"https://api.github.com/users/scottaddie/gists{/gist_id}","starred_url":"https://api.github.com/users/scottaddie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottaddie/subscriptions","organizations_url":"https://api.github.com/users/scottaddie/orgs","repos_url":"https://api.github.com/users/scottaddie/repos","events_url":"https://api.github.com/users/scottaddie/events{/privacy}","received_events_url":"https://api.github.com/users/scottaddie/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/aspnet/Docs/milestones/4","html_url":"https://github.com/aspnet/Docs/milestone/4","labels_url":"https://api.github.com/repos/aspnet/Docs/milestones/4/labels","id":1356168,"node_id":"MDk6TWlsZXN0b25lMTM1NjE2OA==","number":4,"title":"Backlog","description":"Issues that have been triaged but aren’t yet scheduled. Issues not assigned to any milestone are those that have not been triaged.","creator":{"login":"danroth27","id":1874516,"node_id":"MDQ6VXNlcjE4NzQ1MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1874516?v=4","gravatar_id":"","url":"https://api.github.com/users/danroth27","html_url":"https://github.com/danroth27","followers_url":"https://api.github.com/users/danroth27/followers","following_url":"https://api.github.com/users/danroth27/following{/other_user}","gists_url":"https://api.github.com/users/danroth27/gists{/gist_id}","starred_url":"https://api.github.com/users/danroth27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danroth27/subscriptions","organizations_url":"https://api.github.com/users/danroth27/orgs","repos_url":"https://api.github.com/users/danroth27/repos","events_url":"https://api.github.com/users/danroth27/events{/privacy}","received_events_url":"https://api.github.com/users/danroth27/received_events","type":"User","site_admin":false},"open_issues":377,"closed_issues":385,"state":"open","created_at":"2015-10-14T20:43:26Z","updated_at":"2018-08-09T23:41:26Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-08-09T15:13:24Z","updated_at":"2018-08-09T23:41:26Z","closed_at":"2018-08-09T23:41:26Z","author_association":"NONE","body":"I'm using the doc below to add Swagger to an ASP.Net Core 2.1 Web API. When adding the `[ProducesResponseType(200)]` to a method, the generated models are removed from being displayed on the Swagger UI. I've attached the screen shot showing where Models are displayed and you'll see only one Model underneath it when there should be two. One is removed because I added the above line of code. I've tried adding XML doc tags to the model class itself to see if it gets picked back up but it doesn't\r\n\r\nSo do we use this and lose the models documented by Swagger? Or is there something I'm not seeing in the docs? I've looked over the docs a few times but haven't seen anything else.\r\n\r\nThanks,\r\n\r\nhttps://docs.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-2.1&tabs=visual-studio-code%2Cvisual-studio-xml\r\n\r\n![openapi-swagger](https://user-images.githubusercontent.com/16159685/43908114-24410b6c-9bc5-11e8-849a-4cfad6ef40f8.PNG)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/Docs/issues/comments/411931566","html_url":"https://github.com/aspnet/Docs/issues/8007#issuecomment-411931566","issue_url":"https://api.github.com/repos/aspnet/Docs/issues/8007","id":411931566,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTkzMTU2Ng==","user":{"login":"Rick-Anderson","id":3605364,"node_id":"MDQ6VXNlcjM2MDUzNjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3605364?v=4","gravatar_id":"","url":"https://api.github.com/users/Rick-Anderson","html_url":"https://github.com/Rick-Anderson","followers_url":"https://api.github.com/users/Rick-Anderson/followers","following_url":"https://api.github.com/users/Rick-Anderson/following{/other_user}","gists_url":"https://api.github.com/users/Rick-Anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/Rick-Anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rick-Anderson/subscriptions","organizations_url":"https://api.github.com/users/Rick-Anderson/orgs","repos_url":"https://api.github.com/users/Rick-Anderson/repos","events_url":"https://api.github.com/users/Rick-Anderson/events{/privacy}","received_events_url":"https://api.github.com/users/Rick-Anderson/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T23:41:26Z","updated_at":"2018-08-09T23:41:26Z","author_association":"CONTRIBUTOR","body":"Moved to  #8018 so visible on doc page."}}
{"actor":{"display_login":"Rick-Anderson"}}