{"action":"created","issue":{"url":"https://api.github.com/repos/feathers-plus/feathers-hooks-common/issues/387","repository_url":"https://api.github.com/repos/feathers-plus/feathers-hooks-common","labels_url":"https://api.github.com/repos/feathers-plus/feathers-hooks-common/issues/387/labels{/name}","comments_url":"https://api.github.com/repos/feathers-plus/feathers-hooks-common/issues/387/comments","events_url":"https://api.github.com/repos/feathers-plus/feathers-hooks-common/issues/387/events","html_url":"https://github.com/feathers-plus/feathers-hooks-common/issues/387","id":320198351,"number":387,"title":"Coerce result","user":{"login":"bertho-zero","id":8525267,"avatar_url":"https://avatars0.githubusercontent.com/u/8525267?v=4","gravatar_id":"","url":"https://api.github.com/users/bertho-zero","html_url":"https://github.com/bertho-zero","followers_url":"https://api.github.com/users/bertho-zero/followers","following_url":"https://api.github.com/users/bertho-zero/following{/other_user}","gists_url":"https://api.github.com/users/bertho-zero/gists{/gist_id}","starred_url":"https://api.github.com/users/bertho-zero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertho-zero/subscriptions","organizations_url":"https://api.github.com/users/bertho-zero/orgs","repos_url":"https://api.github.com/users/bertho-zero/repos","events_url":"https://api.github.com/users/bertho-zero/events{/privacy}","received_events_url":"https://api.github.com/users/bertho-zero/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-04T08:55:12Z","updated_at":"2018-05-04T13:28:48Z","closed_at":"2018-05-04T13:28:48Z","author_association":"CONTRIBUTOR","body":"Hi, as mentioned [here](https://feathers-plus.github.io/v1/feathers-hooks-common/#coerce) I would like to use a validator to coerce my values, so validate should not use checkNew (like `validateSchema`).\r\n\r\n`validate` should be able to be used on all methods and can be an after hook.\r\n\r\nIn my case I would have turned a tinyint knex into a boolean in an afterHook."},"comment":{"url":"https://api.github.com/repos/feathers-plus/feathers-hooks-common/issues/comments/386601373","html_url":"https://github.com/feathers-plus/feathers-hooks-common/issues/387#issuecomment-386601373","issue_url":"https://api.github.com/repos/feathers-plus/feathers-hooks-common/issues/387","id":386601373,"user":{"login":"bertho-zero","id":8525267,"avatar_url":"https://avatars0.githubusercontent.com/u/8525267?v=4","gravatar_id":"","url":"https://api.github.com/users/bertho-zero","html_url":"https://github.com/bertho-zero","followers_url":"https://api.github.com/users/bertho-zero/followers","following_url":"https://api.github.com/users/bertho-zero/following{/other_user}","gists_url":"https://api.github.com/users/bertho-zero/gists{/gist_id}","starred_url":"https://api.github.com/users/bertho-zero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertho-zero/subscriptions","organizations_url":"https://api.github.com/users/bertho-zero/orgs","repos_url":"https://api.github.com/users/bertho-zero/repos","events_url":"https://api.github.com/users/bertho-zero/events{/privacy}","received_events_url":"https://api.github.com/users/bertho-zero/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T13:28:48Z","updated_at":"2018-05-04T13:28:48Z","author_association":"CONTRIBUTOR","body":"I have created a `coerce` hook which is substantially like validate without the checkContext restriction."}}
{"actor":{"display_login":"bertho-zero"}}