{"action":"created","issue":{"url":"https://api.github.com/repos/twe4ked/rspec-api-docs/issues/10","repository_url":"https://api.github.com/repos/twe4ked/rspec-api-docs","labels_url":"https://api.github.com/repos/twe4ked/rspec-api-docs/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/twe4ked/rspec-api-docs/issues/10/comments","events_url":"https://api.github.com/repos/twe4ked/rspec-api-docs/issues/10/events","html_url":"https://github.com/twe4ked/rspec-api-docs/pull/10","id":362451961,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3MTY4ODM0","number":10,"title":"return nil for non-JSON response bodies rather than blowing up","user":{"login":"2potatocakes","id":468086,"node_id":"MDQ6VXNlcjQ2ODA4Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/468086?v=4","gravatar_id":"","url":"https://api.github.com/users/2potatocakes","html_url":"https://github.com/2potatocakes","followers_url":"https://api.github.com/users/2potatocakes/followers","following_url":"https://api.github.com/users/2potatocakes/following{/other_user}","gists_url":"https://api.github.com/users/2potatocakes/gists{/gist_id}","starred_url":"https://api.github.com/users/2potatocakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2potatocakes/subscriptions","organizations_url":"https://api.github.com/users/2potatocakes/orgs","repos_url":"https://api.github.com/users/2potatocakes/repos","events_url":"https://api.github.com/users/2potatocakes/events{/privacy}","received_events_url":"https://api.github.com/users/2potatocakes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-21T04:30:06Z","updated_at":"2018-09-21T04:48:29Z","closed_at":"2018-09-21T04:33:11Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/twe4ked/rspec-api-docs/pulls/10","html_url":"https://github.com/twe4ked/rspec-api-docs/pull/10","diff_url":"https://github.com/twe4ked/rspec-api-docs/pull/10.diff","patch_url":"https://github.com/twe4ked/rspec-api-docs/pull/10.patch"},"body":"I'm currently trying to add API documentation for an endpoint that returns a PDF in the response body but it's blowing up while trying to generate the documentation because the `response_body` method always assumes that the response is JSON.\r\n\r\nThis PR changes the behaviour to only include a JSON response body when a response content type is `application/json`, every thing else will return `nil`.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/twe4ked/rspec-api-docs/issues/comments/423412254","html_url":"https://github.com/twe4ked/rspec-api-docs/pull/10#issuecomment-423412254","issue_url":"https://api.github.com/repos/twe4ked/rspec-api-docs/issues/10","id":423412254,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzQxMjI1NA==","user":{"login":"twe4ked","id":71970,"node_id":"MDQ6VXNlcjcxOTcw","avatar_url":"https://avatars2.githubusercontent.com/u/71970?v=4","gravatar_id":"","url":"https://api.github.com/users/twe4ked","html_url":"https://github.com/twe4ked","followers_url":"https://api.github.com/users/twe4ked/followers","following_url":"https://api.github.com/users/twe4ked/following{/other_user}","gists_url":"https://api.github.com/users/twe4ked/gists{/gist_id}","starred_url":"https://api.github.com/users/twe4ked/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twe4ked/subscriptions","organizations_url":"https://api.github.com/users/twe4ked/orgs","repos_url":"https://api.github.com/users/twe4ked/repos","events_url":"https://api.github.com/users/twe4ked/events{/privacy}","received_events_url":"https://api.github.com/users/twe4ked/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T04:48:29Z","updated_at":"2018-09-21T04:48:29Z","author_association":"OWNER","body":"How did you decide to get around this instead?"}}
{"actor":{"display_login":"twe4ked"}}