{"action":"created","issue":{"url":"https://api.github.com/repos/jquense/yup/issues/19","labels_url":"https://api.github.com/repos/jquense/yup/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/jquense/yup/issues/19/comments","events_url":"https://api.github.com/repos/jquense/yup/issues/19/events","html_url":"https://github.com/jquense/yup/pull/19","id":122478731,"number":19,"title":"Pass the path when rejecting a field based on type","user":{"login":"simon-engledew","id":14410,"avatar_url":"https://avatars.githubusercontent.com/u/14410?v=3","gravatar_id":"","url":"https://api.github.com/users/simon-engledew","html_url":"https://github.com/simon-engledew","followers_url":"https://api.github.com/users/simon-engledew/followers","following_url":"https://api.github.com/users/simon-engledew/following{/other_user}","gists_url":"https://api.github.com/users/simon-engledew/gists{/gist_id}","starred_url":"https://api.github.com/users/simon-engledew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon-engledew/subscriptions","organizations_url":"https://api.github.com/users/simon-engledew/orgs","repos_url":"https://api.github.com/users/simon-engledew/repos","events_url":"https://api.github.com/users/simon-engledew/events{/privacy}","received_events_url":"https://api.github.com/users/simon-engledew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-16T11:03:10Z","updated_at":"2015-12-16T13:00:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jquense/yup/pulls/19","html_url":"https://github.com/jquense/yup/pull/19","diff_url":"https://github.com/jquense/yup/pull/19.diff","patch_url":"https://github.com/jquense/yup/pull/19.patch"},"body":"Hey there!\r\n\r\nI'm using yup to validate form inputs and then display errors if they are incorrect.\r\n\r\nI was having a little bit of trouble validating ```number()``` ```typeError()```s and grabbing the path of the incorrect input.\r\n\r\nAfter a bit of digging around, it seems that if you add the path to the reject method it becomes available when dealing with validation errors, which is super useful!\r\n\r\nCheers,\r\n~ Simon"},"comment":{"url":"https://api.github.com/repos/jquense/yup/issues/comments/165097541","html_url":"https://github.com/jquense/yup/pull/19#issuecomment-165097541","issue_url":"https://api.github.com/repos/jquense/yup/issues/19","id":165097541,"user":{"login":"jquense","id":339286,"avatar_url":"https://avatars.githubusercontent.com/u/339286?v=3","gravatar_id":"","url":"https://api.github.com/users/jquense","html_url":"https://github.com/jquense","followers_url":"https://api.github.com/users/jquense/followers","following_url":"https://api.github.com/users/jquense/following{/other_user}","gists_url":"https://api.github.com/users/jquense/gists{/gist_id}","starred_url":"https://api.github.com/users/jquense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquense/subscriptions","organizations_url":"https://api.github.com/users/jquense/orgs","repos_url":"https://api.github.com/users/jquense/repos","events_url":"https://api.github.com/users/jquense/events{/privacy}","received_events_url":"https://api.github.com/users/jquense/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T13:00:29Z","updated_at":"2015-12-16T13:00:29Z","body":"Hey there. that's for the PR, I actually think that what you need is already their. in an aggregate validation exception the `inner` property on the error contains each individual error, of which each have a path and type property "}}