{"action":"closed","issue":{"url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/52","repository_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi","labels_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/52/comments","events_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/52/events","html_url":"https://github.com/krakenjs/swaggerize-hapi/issues/52","id":162213010,"number":52,"title":"Optional formData in post request could fail the server","user":{"login":"subeeshcbabu","id":1707119,"avatar_url":"https://avatars3.githubusercontent.com/u/1707119?v=4","gravatar_id":"","url":"https://api.github.com/users/subeeshcbabu","html_url":"https://github.com/subeeshcbabu","followers_url":"https://api.github.com/users/subeeshcbabu/followers","following_url":"https://api.github.com/users/subeeshcbabu/following{/other_user}","gists_url":"https://api.github.com/users/subeeshcbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/subeeshcbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subeeshcbabu/subscriptions","organizations_url":"https://api.github.com/users/subeeshcbabu/orgs","repos_url":"https://api.github.com/users/subeeshcbabu/repos","events_url":"https://api.github.com/users/subeeshcbabu/events{/privacy}","received_events_url":"https://api.github.com/users/subeeshcbabu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-24T19:18:12Z","updated_at":"2017-12-22T19:55:00Z","closed_at":"2017-12-22T19:55:00Z","author_association":"MEMBER","body":"If the `formData` parameters are optional (no `payload`), server throws error while trying to validate non existing parameters.\n\nhttps://github.com/krakenjs/swaggerize-hapi/blob/master/lib/index.js#L105\n\n```\nDebug: internal, implementation, error \n    TypeError: Uncaught error: Cannot convert undefined or null to object\n    at Function.keys (native)\n    at config.validate.payload \n```\n"}}
{"actor":{"display_login":"tlivings"}}