{"action":"closed","number":27,"pull_request":{"url":"https://api.github.com/repos/apigee-127/swagger-test-templates/pulls/27","id":39294996,"html_url":"https://github.com/apigee-127/swagger-test-templates/pull/27","diff_url":"https://github.com/apigee-127/swagger-test-templates/pull/27.diff","patch_url":"https://github.com/apigee-127/swagger-test-templates/pull/27.patch","issue_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/27","number":27,"state":"closed","locked":false,"title":"Use operation response schema to make better mock assertions","user":{"login":"noahdietz","id":6644735,"avatar_url":"https://avatars.githubusercontent.com/u/6644735?v=3","gravatar_id":"","url":"https://api.github.com/users/noahdietz","html_url":"https://github.com/noahdietz","followers_url":"https://api.github.com/users/noahdietz/followers","following_url":"https://api.github.com/users/noahdietz/following{/other_user}","gists_url":"https://api.github.com/users/noahdietz/gists{/gist_id}","starred_url":"https://api.github.com/users/noahdietz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahdietz/subscriptions","organizations_url":"https://api.github.com/users/noahdietz/orgs","repos_url":"https://api.github.com/users/noahdietz/repos","events_url":"https://api.github.com/users/noahdietz/events{/privacy}","received_events_url":"https://api.github.com/users/noahdietz/received_events","type":"User","site_admin":false},"body":"The response schema defined in the provided swagger is reflected in the assertions supplied in the generated code. The generated tests pull the schema of the operation being tested, and validate the response of the request against the expected schema.\r\n\r\nFixes #16 ","created_at":"2015-07-06T18:13:40Z","updated_at":"2015-07-07T00:02:00Z","closed_at":"2015-07-07T00:02:00Z","merged_at":"2015-07-07T00:02:00Z","merge_commit_sha":"acf28ae70e839c27855803598700b0c55ac1475e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/pulls/27/commits","review_comments_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/pulls/27/comments","review_comment_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/27/comments","statuses_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/statuses/3b85a6f3dac0a303495487dac4af58a99fd27421","head":{"label":"apigee-127:mock_assertions","ref":"mock_assertions","sha":"3b85a6f3dac0a303495487dac4af58a99fd27421","user":{"login":"apigee-127","id":7990855,"avatar_url":"https://avatars.githubusercontent.com/u/7990855?v=3","gravatar_id":"","url":"https://api.github.com/users/apigee-127","html_url":"https://github.com/apigee-127","followers_url":"https://api.github.com/users/apigee-127/followers","following_url":"https://api.github.com/users/apigee-127/following{/other_user}","gists_url":"https://api.github.com/users/apigee-127/gists{/gist_id}","starred_url":"https://api.github.com/users/apigee-127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apigee-127/subscriptions","organizations_url":"https://api.github.com/users/apigee-127/orgs","repos_url":"https://api.github.com/users/apigee-127/repos","events_url":"https://api.github.com/users/apigee-127/events{/privacy}","received_events_url":"https://api.github.com/users/apigee-127/received_events","type":"Organization","site_admin":false},"repo":{"id":37933351,"name":"swagger-test-templates","full_name":"apigee-127/swagger-test-templates","owner":{"login":"apigee-127","id":7990855,"avatar_url":"https://avatars.githubusercontent.com/u/7990855?v=3","gravatar_id":"","url":"https://api.github.com/users/apigee-127","html_url":"https://github.com/apigee-127","followers_url":"https://api.github.com/users/apigee-127/followers","following_url":"https://api.github.com/users/apigee-127/following{/other_user}","gists_url":"https://api.github.com/users/apigee-127/gists{/gist_id}","starred_url":"https://api.github.com/users/apigee-127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apigee-127/subscriptions","organizations_url":"https://api.github.com/users/apigee-127/orgs","repos_url":"https://api.github.com/users/apigee-127/repos","events_url":"https://api.github.com/users/apigee-127/events{/privacy}","received_events_url":"https://api.github.com/users/apigee-127/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apigee-127/swagger-test-templates","description":"Test code generated from Swagger","fork":false,"url":"https://api.github.com/repos/apigee-127/swagger-test-templates","forks_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/forks","keys_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/teams","hooks_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/hooks","issue_events_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/events{/number}","events_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/events","assignees_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/assignees{/user}","branches_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/branches{/branch}","tags_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/tags","blobs_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/git/refs{/sha}","trees_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/statuses/{sha}","languages_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/languages","stargazers_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/stargazers","contributors_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/contributors","subscribers_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/subscribers","subscription_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/subscription","commits_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/commits{/sha}","git_commits_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/git/commits{/sha}","comments_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/comments{/number}","issue_comment_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/comments{/number}","contents_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/contents/{+path}","compare_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/merges","archive_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/downloads","issues_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues{/number}","pulls_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/pulls{/number}","milestones_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/milestones{/number}","notifications_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/labels{/name}","releases_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/releases{/id}","created_at":"2015-06-23T17:20:10Z","updated_at":"2015-06-25T19:04:41Z","pushed_at":"2015-07-07T00:02:00Z","git_url":"git://github.com/apigee-127/swagger-test-templates.git","ssh_url":"git@github.com:apigee-127/swagger-test-templates.git","clone_url":"https://github.com/apigee-127/swagger-test-templates.git","svn_url":"https://github.com/apigee-127/swagger-test-templates","homepage":null,"size":416,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"apigee-127:master","ref":"master","sha":"e8508dacf967fbadafda8a06da96303e44bb295b","user":{"login":"apigee-127","id":7990855,"avatar_url":"https://avatars.githubusercontent.com/u/7990855?v=3","gravatar_id":"","url":"https://api.github.com/users/apigee-127","html_url":"https://github.com/apigee-127","followers_url":"https://api.github.com/users/apigee-127/followers","following_url":"https://api.github.com/users/apigee-127/following{/other_user}","gists_url":"https://api.github.com/users/apigee-127/gists{/gist_id}","starred_url":"https://api.github.com/users/apigee-127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apigee-127/subscriptions","organizations_url":"https://api.github.com/users/apigee-127/orgs","repos_url":"https://api.github.com/users/apigee-127/repos","events_url":"https://api.github.com/users/apigee-127/events{/privacy}","received_events_url":"https://api.github.com/users/apigee-127/received_events","type":"Organization","site_admin":false},"repo":{"id":37933351,"name":"swagger-test-templates","full_name":"apigee-127/swagger-test-templates","owner":{"login":"apigee-127","id":7990855,"avatar_url":"https://avatars.githubusercontent.com/u/7990855?v=3","gravatar_id":"","url":"https://api.github.com/users/apigee-127","html_url":"https://github.com/apigee-127","followers_url":"https://api.github.com/users/apigee-127/followers","following_url":"https://api.github.com/users/apigee-127/following{/other_user}","gists_url":"https://api.github.com/users/apigee-127/gists{/gist_id}","starred_url":"https://api.github.com/users/apigee-127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apigee-127/subscriptions","organizations_url":"https://api.github.com/users/apigee-127/orgs","repos_url":"https://api.github.com/users/apigee-127/repos","events_url":"https://api.github.com/users/apigee-127/events{/privacy}","received_events_url":"https://api.github.com/users/apigee-127/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apigee-127/swagger-test-templates","description":"Test code generated from Swagger","fork":false,"url":"https://api.github.com/repos/apigee-127/swagger-test-templates","forks_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/forks","keys_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/teams","hooks_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/hooks","issue_events_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/events{/number}","events_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/events","assignees_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/assignees{/user}","branches_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/branches{/branch}","tags_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/tags","blobs_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/git/refs{/sha}","trees_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/statuses/{sha}","languages_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/languages","stargazers_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/stargazers","contributors_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/contributors","subscribers_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/subscribers","subscription_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/subscription","commits_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/commits{/sha}","git_commits_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/git/commits{/sha}","comments_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/comments{/number}","issue_comment_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/comments{/number}","contents_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/contents/{+path}","compare_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/merges","archive_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/downloads","issues_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues{/number}","pulls_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/pulls{/number}","milestones_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/milestones{/number}","notifications_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/labels{/name}","releases_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/releases{/id}","created_at":"2015-06-23T17:20:10Z","updated_at":"2015-06-25T19:04:41Z","pushed_at":"2015-07-07T00:02:00Z","git_url":"git://github.com/apigee-127/swagger-test-templates.git","ssh_url":"git@github.com:apigee-127/swagger-test-templates.git","clone_url":"https://github.com/apigee-127/swagger-test-templates.git","svn_url":"https://github.com/apigee-127/swagger-test-templates","homepage":null,"size":416,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apigee-127/swagger-test-templates/pulls/27"},"html":{"href":"https://github.com/apigee-127/swagger-test-templates/pull/27"},"issue":{"href":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/27"},"comments":{"href":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/apigee-127/swagger-test-templates/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/apigee-127/swagger-test-templates/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apigee-127/swagger-test-templates/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/apigee-127/swagger-test-templates/statuses/3b85a6f3dac0a303495487dac4af58a99fd27421"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mohsen1","id":543633,"avatar_url":"https://avatars.githubusercontent.com/u/543633?v=3","gravatar_id":"","url":"https://api.github.com/users/mohsen1","html_url":"https://github.com/mohsen1","followers_url":"https://api.github.com/users/mohsen1/followers","following_url":"https://api.github.com/users/mohsen1/following{/other_user}","gists_url":"https://api.github.com/users/mohsen1/gists{/gist_id}","starred_url":"https://api.github.com/users/mohsen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohsen1/subscriptions","organizations_url":"https://api.github.com/users/mohsen1/orgs","repos_url":"https://api.github.com/users/mohsen1/repos","events_url":"https://api.github.com/users/mohsen1/events{/privacy}","received_events_url":"https://api.github.com/users/mohsen1/received_events","type":"User","site_admin":false},"comments":1,"review_comments":11,"commits":1,"additions":1082,"deletions":157,"changed_files":36}}