{"action":"closed","number":32,"pull_request":{"url":"https://api.github.com/repos/domaindrivendev/rswag/pulls/32","id":89820082,"html_url":"https://github.com/domaindrivendev/rswag/pull/32","diff_url":"https://github.com/domaindrivendev/rswag/pull/32.diff","patch_url":"https://github.com/domaindrivendev/rswag/pull/32.patch","issue_url":"https://api.github.com/repos/domaindrivendev/rswag/issues/32","number":32,"state":"closed","locked":false,"title":"Validating response headers and setting response examples","user":{"login":"vinh0604","id":886778,"avatar_url":"https://avatars.githubusercontent.com/u/886778?v=3","gravatar_id":"","url":"https://api.github.com/users/vinh0604","html_url":"https://github.com/vinh0604","followers_url":"https://api.github.com/users/vinh0604/followers","following_url":"https://api.github.com/users/vinh0604/following{/other_user}","gists_url":"https://api.github.com/users/vinh0604/gists{/gist_id}","starred_url":"https://api.github.com/users/vinh0604/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinh0604/subscriptions","organizations_url":"https://api.github.com/users/vinh0604/orgs","repos_url":"https://api.github.com/users/vinh0604/repos","events_url":"https://api.github.com/users/vinh0604/events{/privacy}","received_events_url":"https://api.github.com/users/vinh0604/received_events","type":"User","site_admin":false},"body":"This PR adds header validations into `Rswag::Specs::ResponseValidator`, using JSON::Validator to validate header value with [Header Object](http://swagger.io/specification/#headerObject)\r\n\r\nI also add `response_examples` method to `Rswag::Specs::ExampleGroupHelpers` to support setting [response examples](http://swagger.io/specification/#exampleObject) into swagger docs.\r\n\r\nCheers,\r\nVinh Bach.","created_at":"2016-10-18T13:54:25Z","updated_at":"2016-10-19T07:09:48Z","closed_at":"2016-10-19T07:09:48Z","merged_at":"2016-10-19T07:09:48Z","merge_commit_sha":"17a6cd13c481b948ddf24122305ba055b6be9f40","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/domaindrivendev/rswag/pulls/32/commits","review_comments_url":"https://api.github.com/repos/domaindrivendev/rswag/pulls/32/comments","review_comment_url":"https://api.github.com/repos/domaindrivendev/rswag/pulls/comments{/number}","comments_url":"https://api.github.com/repos/domaindrivendev/rswag/issues/32/comments","statuses_url":"https://api.github.com/repos/domaindrivendev/rswag/statuses/0b0acfe4c7d956c53802d57f8442dfbab19794ea","head":{"label":"vinh0604:master","ref":"master","sha":"0b0acfe4c7d956c53802d57f8442dfbab19794ea","user":{"login":"vinh0604","id":886778,"avatar_url":"https://avatars.githubusercontent.com/u/886778?v=3","gravatar_id":"","url":"https://api.github.com/users/vinh0604","html_url":"https://github.com/vinh0604","followers_url":"https://api.github.com/users/vinh0604/followers","following_url":"https://api.github.com/users/vinh0604/following{/other_user}","gists_url":"https://api.github.com/users/vinh0604/gists{/gist_id}","starred_url":"https://api.github.com/users/vinh0604/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinh0604/subscriptions","organizations_url":"https://api.github.com/users/vinh0604/orgs","repos_url":"https://api.github.com/users/vinh0604/repos","events_url":"https://api.github.com/users/vinh0604/events{/privacy}","received_events_url":"https://api.github.com/users/vinh0604/received_events","type":"User","site_admin":false},"repo":{"id":71252921,"name":"rswag","full_name":"vinh0604/rswag","owner":{"login":"vinh0604","id":886778,"avatar_url":"https://avatars.githubusercontent.com/u/886778?v=3","gravatar_id":"","url":"https://api.github.com/users/vinh0604","html_url":"https://github.com/vinh0604","followers_url":"https://api.github.com/users/vinh0604/followers","following_url":"https://api.github.com/users/vinh0604/following{/other_user}","gists_url":"https://api.github.com/users/vinh0604/gists{/gist_id}","starred_url":"https://api.github.com/users/vinh0604/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinh0604/subscriptions","organizations_url":"https://api.github.com/users/vinh0604/orgs","repos_url":"https://api.github.com/users/vinh0604/repos","events_url":"https://api.github.com/users/vinh0604/events{/privacy}","received_events_url":"https://api.github.com/users/vinh0604/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vinh0604/rswag","description":"Seamlessly adds a Swagger to Rails-based API's","fork":true,"url":"https://api.github.com/repos/vinh0604/rswag","forks_url":"https://api.github.com/repos/vinh0604/rswag/forks","keys_url":"https://api.github.com/repos/vinh0604/rswag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vinh0604/rswag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vinh0604/rswag/teams","hooks_url":"https://api.github.com/repos/vinh0604/rswag/hooks","issue_events_url":"https://api.github.com/repos/vinh0604/rswag/issues/events{/number}","events_url":"https://api.github.com/repos/vinh0604/rswag/events","assignees_url":"https://api.github.com/repos/vinh0604/rswag/assignees{/user}","branches_url":"https://api.github.com/repos/vinh0604/rswag/branches{/branch}","tags_url":"https://api.github.com/repos/vinh0604/rswag/tags","blobs_url":"https://api.github.com/repos/vinh0604/rswag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vinh0604/rswag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vinh0604/rswag/git/refs{/sha}","trees_url":"https://api.github.com/repos/vinh0604/rswag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vinh0604/rswag/statuses/{sha}","languages_url":"https://api.github.com/repos/vinh0604/rswag/languages","stargazers_url":"https://api.github.com/repos/vinh0604/rswag/stargazers","contributors_url":"https://api.github.com/repos/vinh0604/rswag/contributors","subscribers_url":"https://api.github.com/repos/vinh0604/rswag/subscribers","subscription_url":"https://api.github.com/repos/vinh0604/rswag/subscription","commits_url":"https://api.github.com/repos/vinh0604/rswag/commits{/sha}","git_commits_url":"https://api.github.com/repos/vinh0604/rswag/git/commits{/sha}","comments_url":"https://api.github.com/repos/vinh0604/rswag/comments{/number}","issue_comment_url":"https://api.github.com/repos/vinh0604/rswag/issues/comments{/number}","contents_url":"https://api.github.com/repos/vinh0604/rswag/contents/{+path}","compare_url":"https://api.github.com/repos/vinh0604/rswag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vinh0604/rswag/merges","archive_url":"https://api.github.com/repos/vinh0604/rswag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vinh0604/rswag/downloads","issues_url":"https://api.github.com/repos/vinh0604/rswag/issues{/number}","pulls_url":"https://api.github.com/repos/vinh0604/rswag/pulls{/number}","milestones_url":"https://api.github.com/repos/vinh0604/rswag/milestones{/number}","notifications_url":"https://api.github.com/repos/vinh0604/rswag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vinh0604/rswag/labels{/name}","releases_url":"https://api.github.com/repos/vinh0604/rswag/releases{/id}","deployments_url":"https://api.github.com/repos/vinh0604/rswag/deployments","created_at":"2016-10-18T13:47:23Z","updated_at":"2016-10-18T13:47:24Z","pushed_at":"2016-10-18T19:04:24Z","git_url":"git://github.com/vinh0604/rswag.git","ssh_url":"git@github.com:vinh0604/rswag.git","clone_url":"https://github.com/vinh0604/rswag.git","svn_url":"https://github.com/vinh0604/rswag","homepage":null,"size":8171,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"domaindrivendev:master","ref":"master","sha":"3506fee3d0f8420626ebd84d65f3524ba46969f3","user":{"login":"domaindrivendev","id":1434343,"avatar_url":"https://avatars.githubusercontent.com/u/1434343?v=3","gravatar_id":"","url":"https://api.github.com/users/domaindrivendev","html_url":"https://github.com/domaindrivendev","followers_url":"https://api.github.com/users/domaindrivendev/followers","following_url":"https://api.github.com/users/domaindrivendev/following{/other_user}","gists_url":"https://api.github.com/users/domaindrivendev/gists{/gist_id}","starred_url":"https://api.github.com/users/domaindrivendev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domaindrivendev/subscriptions","organizations_url":"https://api.github.com/users/domaindrivendev/orgs","repos_url":"https://api.github.com/users/domaindrivendev/repos","events_url":"https://api.github.com/users/domaindrivendev/events{/privacy}","received_events_url":"https://api.github.com/users/domaindrivendev/received_events","type":"User","site_admin":false},"repo":{"id":29151578,"name":"rswag","full_name":"domaindrivendev/rswag","owner":{"login":"domaindrivendev","id":1434343,"avatar_url":"https://avatars.githubusercontent.com/u/1434343?v=3","gravatar_id":"","url":"https://api.github.com/users/domaindrivendev","html_url":"https://github.com/domaindrivendev","followers_url":"https://api.github.com/users/domaindrivendev/followers","following_url":"https://api.github.com/users/domaindrivendev/following{/other_user}","gists_url":"https://api.github.com/users/domaindrivendev/gists{/gist_id}","starred_url":"https://api.github.com/users/domaindrivendev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domaindrivendev/subscriptions","organizations_url":"https://api.github.com/users/domaindrivendev/orgs","repos_url":"https://api.github.com/users/domaindrivendev/repos","events_url":"https://api.github.com/users/domaindrivendev/events{/privacy}","received_events_url":"https://api.github.com/users/domaindrivendev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/domaindrivendev/rswag","description":"Seamlessly adds a Swagger to Rails-based API's","fork":false,"url":"https://api.github.com/repos/domaindrivendev/rswag","forks_url":"https://api.github.com/repos/domaindrivendev/rswag/forks","keys_url":"https://api.github.com/repos/domaindrivendev/rswag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/domaindrivendev/rswag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/domaindrivendev/rswag/teams","hooks_url":"https://api.github.com/repos/domaindrivendev/rswag/hooks","issue_events_url":"https://api.github.com/repos/domaindrivendev/rswag/issues/events{/number}","events_url":"https://api.github.com/repos/domaindrivendev/rswag/events","assignees_url":"https://api.github.com/repos/domaindrivendev/rswag/assignees{/user}","branches_url":"https://api.github.com/repos/domaindrivendev/rswag/branches{/branch}","tags_url":"https://api.github.com/repos/domaindrivendev/rswag/tags","blobs_url":"https://api.github.com/repos/domaindrivendev/rswag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/domaindrivendev/rswag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/domaindrivendev/rswag/git/refs{/sha}","trees_url":"https://api.github.com/repos/domaindrivendev/rswag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/domaindrivendev/rswag/statuses/{sha}","languages_url":"https://api.github.com/repos/domaindrivendev/rswag/languages","stargazers_url":"https://api.github.com/repos/domaindrivendev/rswag/stargazers","contributors_url":"https://api.github.com/repos/domaindrivendev/rswag/contributors","subscribers_url":"https://api.github.com/repos/domaindrivendev/rswag/subscribers","subscription_url":"https://api.github.com/repos/domaindrivendev/rswag/subscription","commits_url":"https://api.github.com/repos/domaindrivendev/rswag/commits{/sha}","git_commits_url":"https://api.github.com/repos/domaindrivendev/rswag/git/commits{/sha}","comments_url":"https://api.github.com/repos/domaindrivendev/rswag/comments{/number}","issue_comment_url":"https://api.github.com/repos/domaindrivendev/rswag/issues/comments{/number}","contents_url":"https://api.github.com/repos/domaindrivendev/rswag/contents/{+path}","compare_url":"https://api.github.com/repos/domaindrivendev/rswag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/domaindrivendev/rswag/merges","archive_url":"https://api.github.com/repos/domaindrivendev/rswag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/domaindrivendev/rswag/downloads","issues_url":"https://api.github.com/repos/domaindrivendev/rswag/issues{/number}","pulls_url":"https://api.github.com/repos/domaindrivendev/rswag/pulls{/number}","milestones_url":"https://api.github.com/repos/domaindrivendev/rswag/milestones{/number}","notifications_url":"https://api.github.com/repos/domaindrivendev/rswag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/domaindrivendev/rswag/labels{/name}","releases_url":"https://api.github.com/repos/domaindrivendev/rswag/releases{/id}","deployments_url":"https://api.github.com/repos/domaindrivendev/rswag/deployments","created_at":"2015-01-12T19:08:10Z","updated_at":"2016-10-16T02:27:43Z","pushed_at":"2016-10-19T07:09:48Z","git_url":"git://github.com/domaindrivendev/rswag.git","ssh_url":"git@github.com:domaindrivendev/rswag.git","clone_url":"https://github.com/domaindrivendev/rswag.git","svn_url":"https://github.com/domaindrivendev/rswag","homepage":null,"size":8186,"stargazers_count":24,"watchers_count":24,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":1,"forks":14,"open_issues":1,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/domaindrivendev/rswag/pulls/32"},"html":{"href":"https://github.com/domaindrivendev/rswag/pull/32"},"issue":{"href":"https://api.github.com/repos/domaindrivendev/rswag/issues/32"},"comments":{"href":"https://api.github.com/repos/domaindrivendev/rswag/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/domaindrivendev/rswag/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/domaindrivendev/rswag/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/domaindrivendev/rswag/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/domaindrivendev/rswag/statuses/0b0acfe4c7d956c53802d57f8442dfbab19794ea"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"domaindrivendev","id":1434343,"avatar_url":"https://avatars.githubusercontent.com/u/1434343?v=3","gravatar_id":"","url":"https://api.github.com/users/domaindrivendev","html_url":"https://github.com/domaindrivendev","followers_url":"https://api.github.com/users/domaindrivendev/followers","following_url":"https://api.github.com/users/domaindrivendev/following{/other_user}","gists_url":"https://api.github.com/users/domaindrivendev/gists{/gist_id}","starred_url":"https://api.github.com/users/domaindrivendev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domaindrivendev/subscriptions","organizations_url":"https://api.github.com/users/domaindrivendev/orgs","repos_url":"https://api.github.com/users/domaindrivendev/repos","events_url":"https://api.github.com/users/domaindrivendev/events{/privacy}","received_events_url":"https://api.github.com/users/domaindrivendev/received_events","type":"User","site_admin":false},"comments":7,"review_comments":0,"commits":4,"additions":161,"deletions":9,"changed_files":8}}
{"actor":{"display_login":"domaindrivendev"}}