{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-grape/grape-swagger/issues/491","repository_url":"https://api.github.com/repos/ruby-grape/grape-swagger","labels_url":"https://api.github.com/repos/ruby-grape/grape-swagger/issues/491/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape-swagger/issues/491/comments","events_url":"https://api.github.com/repos/ruby-grape/grape-swagger/issues/491/events","html_url":"https://github.com/ruby-grape/grape-swagger/pull/491","id":169328148,"number":491,"title":"Add `ignore_defaults` option","user":{"login":"pezholio","id":109774,"avatar_url":"https://avatars.githubusercontent.com/u/109774?v=3","gravatar_id":"","url":"https://api.github.com/users/pezholio","html_url":"https://github.com/pezholio","followers_url":"https://api.github.com/users/pezholio/followers","following_url":"https://api.github.com/users/pezholio/following{/other_user}","gists_url":"https://api.github.com/users/pezholio/gists{/gist_id}","starred_url":"https://api.github.com/users/pezholio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pezholio/subscriptions","organizations_url":"https://api.github.com/users/pezholio/orgs","repos_url":"https://api.github.com/users/pezholio/repos","events_url":"https://api.github.com/users/pezholio/events{/privacy}","received_events_url":"https://api.github.com/users/pezholio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-04T09:15:31Z","updated_at":"2016-08-04T14:54:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ruby-grape/grape-swagger/pulls/491","html_url":"https://github.com/ruby-grape/grape-swagger/pull/491","diff_url":"https://github.com/ruby-grape/grape-swagger/pull/491.diff","patch_url":"https://github.com/ruby-grape/grape-swagger/pull/491.patch"},"body":"As outlined in #490 - it seems that grape-swagger adds a default `201` response for `PUT` and `POST` requests. If a `PUT` or `POST` request doesn't immediately create a resource, the correct response is `202 Accepted`. In this case, we want to ignore the default `201` response, and only specify a `202`. \r\n\r\nThere may be other use cases as well, so I've added support for an `ignore_defaults` option which only adds user-specified responses, and ignores the default responses specified in https://github.com/ruby-grape/grape-swagger/blob/master/lib/grape-swagger/doc_methods/status_codes.rb"},"comment":{"url":"https://api.github.com/repos/ruby-grape/grape-swagger/issues/comments/237578280","html_url":"https://github.com/ruby-grape/grape-swagger/pull/491#issuecomment-237578280","issue_url":"https://api.github.com/repos/ruby-grape/grape-swagger/issues/491","id":237578280,"user":{"login":"LeFnord","id":120214,"avatar_url":"https://avatars.githubusercontent.com/u/120214?v=3","gravatar_id":"","url":"https://api.github.com/users/LeFnord","html_url":"https://github.com/LeFnord","followers_url":"https://api.github.com/users/LeFnord/followers","following_url":"https://api.github.com/users/LeFnord/following{/other_user}","gists_url":"https://api.github.com/users/LeFnord/gists{/gist_id}","starred_url":"https://api.github.com/users/LeFnord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeFnord/subscriptions","organizations_url":"https://api.github.com/users/LeFnord/orgs","repos_url":"https://api.github.com/users/LeFnord/repos","events_url":"https://api.github.com/users/LeFnord/events{/privacy}","received_events_url":"https://api.github.com/users/LeFnord/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T14:54:27Z","updated_at":"2016-08-04T14:54:27Z","body":"👍 … cc/ @Bugagazavr, if you are fine with it, I want to cut the next release"}}
{"actor":{"display_login":"LeFnord"}}