{"action":"closed","number":38,"pull_request":{"url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/pulls/38","id":50878414,"html_url":"https://github.com/krakenjs/swaggerize-hapi/pull/38","diff_url":"https://github.com/krakenjs/swaggerize-hapi/pull/38.diff","patch_url":"https://github.com/krakenjs/swaggerize-hapi/pull/38.patch","issue_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/38","number":38,"state":"closed","locked":false,"title":"fix payload check","user":{"login":"dszczyt","id":187248,"avatar_url":"https://avatars.githubusercontent.com/u/187248?v=3","gravatar_id":"","url":"https://api.github.com/users/dszczyt","html_url":"https://github.com/dszczyt","followers_url":"https://api.github.com/users/dszczyt/followers","following_url":"https://api.github.com/users/dszczyt/following{/other_user}","gists_url":"https://api.github.com/users/dszczyt/gists{/gist_id}","starred_url":"https://api.github.com/users/dszczyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dszczyt/subscriptions","organizations_url":"https://api.github.com/users/dszczyt/orgs","repos_url":"https://api.github.com/users/dszczyt/repos","events_url":"https://api.github.com/users/dszczyt/events{/privacy}","received_events_url":"https://api.github.com/users/dszczyt/received_events","type":"User","site_admin":false},"body":"According to http://hapijs.com/tutorials/validation#payload-parameters , payload should be handled like query parameters. The way it was done put the string '[object Object]' in request.payload. This pull request fix payload handling.\r\nI fixed the tests : you can only upload files by submitting multipart/form-data. I suggest adding more tests to cover file uploads.","created_at":"2015-11-16T22:48:28Z","updated_at":"2016-01-13T08:14:01Z","closed_at":"2016-01-13T08:14:01Z","merged_at":null,"merge_commit_sha":"5ef3e3308c2144bed2e6f7a612a2cb66ce7dedda","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/pulls/38/commits","review_comments_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/pulls/38/comments","review_comment_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/38/comments","statuses_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/statuses/6657481e162de68013559360b55540e97014806b","head":{"label":"dszczyt:feature/fix_payload_check","ref":"feature/fix_payload_check","sha":"6657481e162de68013559360b55540e97014806b","user":{"login":"dszczyt","id":187248,"avatar_url":"https://avatars.githubusercontent.com/u/187248?v=3","gravatar_id":"","url":"https://api.github.com/users/dszczyt","html_url":"https://github.com/dszczyt","followers_url":"https://api.github.com/users/dszczyt/followers","following_url":"https://api.github.com/users/dszczyt/following{/other_user}","gists_url":"https://api.github.com/users/dszczyt/gists{/gist_id}","starred_url":"https://api.github.com/users/dszczyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dszczyt/subscriptions","organizations_url":"https://api.github.com/users/dszczyt/orgs","repos_url":"https://api.github.com/users/dszczyt/repos","events_url":"https://api.github.com/users/dszczyt/events{/privacy}","received_events_url":"https://api.github.com/users/dszczyt/received_events","type":"User","site_admin":false},"repo":{"id":46305667,"name":"swaggerize-hapi","full_name":"dszczyt/swaggerize-hapi","owner":{"login":"dszczyt","id":187248,"avatar_url":"https://avatars.githubusercontent.com/u/187248?v=3","gravatar_id":"","url":"https://api.github.com/users/dszczyt","html_url":"https://github.com/dszczyt","followers_url":"https://api.github.com/users/dszczyt/followers","following_url":"https://api.github.com/users/dszczyt/following{/other_user}","gists_url":"https://api.github.com/users/dszczyt/gists{/gist_id}","starred_url":"https://api.github.com/users/dszczyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dszczyt/subscriptions","organizations_url":"https://api.github.com/users/dszczyt/orgs","repos_url":"https://api.github.com/users/dszczyt/repos","events_url":"https://api.github.com/users/dszczyt/events{/privacy}","received_events_url":"https://api.github.com/users/dszczyt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dszczyt/swaggerize-hapi","description":"Design-driven apis with swagger 2.0 and hapi.","fork":true,"url":"https://api.github.com/repos/dszczyt/swaggerize-hapi","forks_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/forks","keys_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/teams","hooks_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/hooks","issue_events_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/issues/events{/number}","events_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/events","assignees_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/assignees{/user}","branches_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/branches{/branch}","tags_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/tags","blobs_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/statuses/{sha}","languages_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/languages","stargazers_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/stargazers","contributors_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/contributors","subscribers_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/subscribers","subscription_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/subscription","commits_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/contents/{+path}","compare_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/merges","archive_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/downloads","issues_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/issues{/number}","pulls_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/pulls{/number}","milestones_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/milestones{/number}","notifications_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/labels{/name}","releases_url":"https://api.github.com/repos/dszczyt/swaggerize-hapi/releases{/id}","created_at":"2015-11-16T22:00:46Z","updated_at":"2015-11-16T22:00:47Z","pushed_at":"2015-11-16T22:44:14Z","git_url":"git://github.com/dszczyt/swaggerize-hapi.git","ssh_url":"git@github.com:dszczyt/swaggerize-hapi.git","clone_url":"https://github.com/dszczyt/swaggerize-hapi.git","svn_url":"https://github.com/dszczyt/swaggerize-hapi","homepage":"","size":58,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"krakenjs:master","ref":"master","sha":"5d65756f6f78bec5c490c1176a0b51ca49b59c02","user":{"login":"krakenjs","id":7001600,"avatar_url":"https://avatars.githubusercontent.com/u/7001600?v=3","gravatar_id":"","url":"https://api.github.com/users/krakenjs","html_url":"https://github.com/krakenjs","followers_url":"https://api.github.com/users/krakenjs/followers","following_url":"https://api.github.com/users/krakenjs/following{/other_user}","gists_url":"https://api.github.com/users/krakenjs/gists{/gist_id}","starred_url":"https://api.github.com/users/krakenjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krakenjs/subscriptions","organizations_url":"https://api.github.com/users/krakenjs/orgs","repos_url":"https://api.github.com/users/krakenjs/repos","events_url":"https://api.github.com/users/krakenjs/events{/privacy}","received_events_url":"https://api.github.com/users/krakenjs/received_events","type":"Organization","site_admin":false},"repo":{"id":25319913,"name":"swaggerize-hapi","full_name":"krakenjs/swaggerize-hapi","owner":{"login":"krakenjs","id":7001600,"avatar_url":"https://avatars.githubusercontent.com/u/7001600?v=3","gravatar_id":"","url":"https://api.github.com/users/krakenjs","html_url":"https://github.com/krakenjs","followers_url":"https://api.github.com/users/krakenjs/followers","following_url":"https://api.github.com/users/krakenjs/following{/other_user}","gists_url":"https://api.github.com/users/krakenjs/gists{/gist_id}","starred_url":"https://api.github.com/users/krakenjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krakenjs/subscriptions","organizations_url":"https://api.github.com/users/krakenjs/orgs","repos_url":"https://api.github.com/users/krakenjs/repos","events_url":"https://api.github.com/users/krakenjs/events{/privacy}","received_events_url":"https://api.github.com/users/krakenjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/krakenjs/swaggerize-hapi","description":"Design-driven apis with swagger 2.0 and hapi.","fork":false,"url":"https://api.github.com/repos/krakenjs/swaggerize-hapi","forks_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/forks","keys_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/teams","hooks_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/hooks","issue_events_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/events{/number}","events_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/events","assignees_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/assignees{/user}","branches_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/branches{/branch}","tags_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/tags","blobs_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/statuses/{sha}","languages_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/languages","stargazers_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/stargazers","contributors_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/contributors","subscribers_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/subscribers","subscription_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/subscription","commits_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/contents/{+path}","compare_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/merges","archive_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/downloads","issues_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues{/number}","pulls_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/pulls{/number}","milestones_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/milestones{/number}","notifications_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/labels{/name}","releases_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/releases{/id}","created_at":"2014-10-16T20:17:54Z","updated_at":"2016-01-02T17:19:10Z","pushed_at":"2015-12-01T01:49:29Z","git_url":"git://github.com/krakenjs/swaggerize-hapi.git","ssh_url":"git@github.com:krakenjs/swaggerize-hapi.git","clone_url":"https://github.com/krakenjs/swaggerize-hapi.git","svn_url":"https://github.com/krakenjs/swaggerize-hapi","homepage":"","size":392,"stargazers_count":60,"watchers_count":60,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":6,"forks":14,"open_issues":6,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/krakenjs/swaggerize-hapi/pulls/38"},"html":{"href":"https://github.com/krakenjs/swaggerize-hapi/pull/38"},"issue":{"href":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/38"},"comments":{"href":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/krakenjs/swaggerize-hapi/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/krakenjs/swaggerize-hapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/krakenjs/swaggerize-hapi/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/krakenjs/swaggerize-hapi/statuses/6657481e162de68013559360b55540e97014806b"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":5,"review_comments":0,"commits":1,"additions":7,"deletions":5,"changed_files":3}}