{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/autorest/issues/1963","repository_url":"https://api.github.com/repos/Azure/autorest","labels_url":"https://api.github.com/repos/Azure/autorest/issues/1963/labels{/name}","comments_url":"https://api.github.com/repos/Azure/autorest/issues/1963/comments","events_url":"https://api.github.com/repos/Azure/autorest/issues/1963/events","html_url":"https://github.com/Azure/autorest/issues/1963","id":212603379,"number":1963,"title":"New rule: Every operation MUST have a \"default\" status code in the \"responses\" section","user":{"login":"veronicagg","id":17714137,"avatar_url":"https://avatars1.githubusercontent.com/u/17714137?v=3","gravatar_id":"","url":"https://api.github.com/users/veronicagg","html_url":"https://github.com/veronicagg","followers_url":"https://api.github.com/users/veronicagg/followers","following_url":"https://api.github.com/users/veronicagg/following{/other_user}","gists_url":"https://api.github.com/users/veronicagg/gists{/gist_id}","starred_url":"https://api.github.com/users/veronicagg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veronicagg/subscriptions","organizations_url":"https://api.github.com/users/veronicagg/orgs","repos_url":"https://api.github.com/users/veronicagg/repos","events_url":"https://api.github.com/users/veronicagg/events{/privacy}","received_events_url":"https://api.github.com/users/veronicagg/received_events","type":"User","site_admin":false},"labels":[{"id":429849093,"url":"https://api.github.com/repos/Azure/autorest/labels/linter","name":"linter","color":"1d76db","default":false},{"id":478518147,"url":"https://api.github.com/repos/Azure/autorest/labels/P2","name":"P2","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":{"login":"dsgouda","id":14796031,"avatar_url":"https://avatars1.githubusercontent.com/u/14796031?v=3","gravatar_id":"","url":"https://api.github.com/users/dsgouda","html_url":"https://github.com/dsgouda","followers_url":"https://api.github.com/users/dsgouda/followers","following_url":"https://api.github.com/users/dsgouda/following{/other_user}","gists_url":"https://api.github.com/users/dsgouda/gists{/gist_id}","starred_url":"https://api.github.com/users/dsgouda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsgouda/subscriptions","organizations_url":"https://api.github.com/users/dsgouda/orgs","repos_url":"https://api.github.com/users/dsgouda/repos","events_url":"https://api.github.com/users/dsgouda/events{/privacy}","received_events_url":"https://api.github.com/users/dsgouda/received_events","type":"User","site_admin":false},"assignees":[{"login":"dsgouda","id":14796031,"avatar_url":"https://avatars1.githubusercontent.com/u/14796031?v=3","gravatar_id":"","url":"https://api.github.com/users/dsgouda","html_url":"https://github.com/dsgouda","followers_url":"https://api.github.com/users/dsgouda/followers","following_url":"https://api.github.com/users/dsgouda/following{/other_user}","gists_url":"https://api.github.com/users/dsgouda/gists{/gist_id}","starred_url":"https://api.github.com/users/dsgouda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsgouda/subscriptions","organizations_url":"https://api.github.com/users/dsgouda/orgs","repos_url":"https://api.github.com/users/dsgouda/repos","events_url":"https://api.github.com/users/dsgouda/events{/privacy}","received_events_url":"https://api.github.com/users/dsgouda/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Azure/autorest/milestones/14","html_url":"https://github.com/Azure/autorest/milestone/14","labels_url":"https://api.github.com/repos/Azure/autorest/milestones/14/labels","id":2516432,"number":14,"title":"Linter rules wave 4","description":"","creator":{"login":"veronicagg","id":17714137,"avatar_url":"https://avatars1.githubusercontent.com/u/17714137?v=3","gravatar_id":"","url":"https://api.github.com/users/veronicagg","html_url":"https://github.com/veronicagg","followers_url":"https://api.github.com/users/veronicagg/followers","following_url":"https://api.github.com/users/veronicagg/following{/other_user}","gists_url":"https://api.github.com/users/veronicagg/gists{/gist_id}","starred_url":"https://api.github.com/users/veronicagg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veronicagg/subscriptions","organizations_url":"https://api.github.com/users/veronicagg/orgs","repos_url":"https://api.github.com/users/veronicagg/repos","events_url":"https://api.github.com/users/veronicagg/events{/privacy}","received_events_url":"https://api.github.com/users/veronicagg/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":5,"state":"open","created_at":"2017-05-12T00:05:39Z","updated_at":"2017-05-24T18:03:28Z","due_on":"2017-06-02T07:00:00Z","closed_at":null},"comments":1,"created_at":"2017-03-08T00:37:24Z","updated_at":"2017-05-24T18:51:37Z","closed_at":null,"body":" M2049: Every operation MUST have a \"default\" status code in the \"responses\" section. The \"default\" corresponds to the error returned by the operation.\r\n\r\nShould we be enforcing this rule? I believe Autorest adds a default response even if it's not defined in the swagger, so it's not required at swagger level. "},"comment":{"url":"https://api.github.com/repos/Azure/autorest/issues/comments/303817573","html_url":"https://github.com/Azure/autorest/issues/1963#issuecomment-303817573","issue_url":"https://api.github.com/repos/Azure/autorest/issues/1963","id":303817573,"user":{"login":"fearthecowboy","id":133736,"avatar_url":"https://avatars0.githubusercontent.com/u/133736?v=3","gravatar_id":"","url":"https://api.github.com/users/fearthecowboy","html_url":"https://github.com/fearthecowboy","followers_url":"https://api.github.com/users/fearthecowboy/followers","following_url":"https://api.github.com/users/fearthecowboy/following{/other_user}","gists_url":"https://api.github.com/users/fearthecowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/fearthecowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fearthecowboy/subscriptions","organizations_url":"https://api.github.com/users/fearthecowboy/orgs","repos_url":"https://api.github.com/users/fearthecowboy/repos","events_url":"https://api.github.com/users/fearthecowboy/events{/privacy}","received_events_url":"https://api.github.com/users/fearthecowboy/received_events","type":"User","site_admin":false},"created_at":"2017-05-24T18:51:37Z","updated_at":"2017-05-24T18:51:37Z","body":"Currently `\"default\" ` means anything not specified, and is a catch-all for errors. \r\n\r\nIf they don't explicitly state `\"default\"`, do we still generate the same code? \r\n"}}
{"actor":{"display_login":"fearthecowboy"}}