{"action":"created","issue":{"url":"https://api.github.com/repos/trailsjs/trailpack-express/issues/21","repository_url":"https://api.github.com/repos/trailsjs/trailpack-express","labels_url":"https://api.github.com/repos/trailsjs/trailpack-express/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/trailsjs/trailpack-express/issues/21/comments","events_url":"https://api.github.com/repos/trailsjs/trailpack-express/issues/21/events","html_url":"https://github.com/trailsjs/trailpack-express/issues/21","id":156124002,"number":21,"title":"Missing validate fields","user":{"login":"jaumard","id":2970449,"avatar_url":"https://avatars.githubusercontent.com/u/2970449?v=3","gravatar_id":"","url":"https://api.github.com/users/jaumard","html_url":"https://github.com/jaumard","followers_url":"https://api.github.com/users/jaumard/followers","following_url":"https://api.github.com/users/jaumard/following{/other_user}","gists_url":"https://api.github.com/users/jaumard/gists{/gist_id}","starred_url":"https://api.github.com/users/jaumard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaumard/subscriptions","organizations_url":"https://api.github.com/users/jaumard/orgs","repos_url":"https://api.github.com/users/jaumard/repos","events_url":"https://api.github.com/users/jaumard/events{/privacy}","received_events_url":"https://api.github.com/users/jaumard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/trailsjs/trailpack-express/labels/enchancement","name":"enchancement","color":"c5def5"},{"url":"https://api.github.com/repos/trailsjs/trailpack-express/labels/task","name":"task","color":"333333"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-21T22:11:40Z","updated_at":"2016-05-30T08:33:57Z","closed_at":null,"body":"@mib4fun we miss some useful options with the `validate` feature : \r\n\r\n> errorFields - an optional object with error fields copied into every validation error response.\r\n\r\n> failAction - determines how to handle invalid requests. Allowed values are:\r\n- 'error' - return a Bad Request (400) error response. This is the default value.\r\n- 'log' - log the error but continue processing the request.\r\n- 'ignore' - take no action.\r\n- a custom error handler function with the signature `function(request, reply, source, error)` where:\r\n - request - the request object.\r\n - reply - the continuation reply interface.\r\n - source - the source of the invalid field (e.g. 'headers', 'params', 'query', 'payload').\r\n - error - the error object prepared for the client response (including the validation function error under error.data).\r\n\r\n> options - options to pass to Joi. Useful to set global options such as stripUnknown or abortEarly (the complete list is available here). Defaults to no options.\r\n\r\nhttp://hapijs.com/api#route-options\r\nIf you don't have time to do it this is not a problem I just want to let you know ^^\r\n\r\nAlso need unit tests about these new fields."},"comment":{"url":"https://api.github.com/repos/trailsjs/trailpack-express/issues/comments/222441619","html_url":"https://github.com/trailsjs/trailpack-express/issues/21#issuecomment-222441619","issue_url":"https://api.github.com/repos/trailsjs/trailpack-express/issues/21","id":222441619,"user":{"login":"jaumard","id":2970449,"avatar_url":"https://avatars.githubusercontent.com/u/2970449?v=3","gravatar_id":"","url":"https://api.github.com/users/jaumard","html_url":"https://github.com/jaumard","followers_url":"https://api.github.com/users/jaumard/followers","following_url":"https://api.github.com/users/jaumard/following{/other_user}","gists_url":"https://api.github.com/users/jaumard/gists{/gist_id}","starred_url":"https://api.github.com/users/jaumard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaumard/subscriptions","organizations_url":"https://api.github.com/users/jaumard/orgs","repos_url":"https://api.github.com/users/jaumard/repos","events_url":"https://api.github.com/users/jaumard/events{/privacy}","received_events_url":"https://api.github.com/users/jaumard/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T08:33:57Z","updated_at":"2016-05-30T08:33:57Z","body":"@mib4fun no problem at all :) it's not urgent, just nice to have."}}
{"actor":{"display_login":"jaumard"}}