{"action":"created","issue":{"url":"https://api.github.com/repos/ansman/validate.js/issues/119","repository_url":"https://api.github.com/repos/ansman/validate.js","labels_url":"https://api.github.com/repos/ansman/validate.js/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/ansman/validate.js/issues/119/comments","events_url":"https://api.github.com/repos/ansman/validate.js/issues/119/events","html_url":"https://github.com/ansman/validate.js/pull/119","id":148383609,"number":119,"title":"Added validator supporting nested values","user":{"login":"brownstein","id":886693,"avatar_url":"https://avatars.githubusercontent.com/u/886693?v=3","gravatar_id":"","url":"https://api.github.com/users/brownstein","html_url":"https://github.com/brownstein","followers_url":"https://api.github.com/users/brownstein/followers","following_url":"https://api.github.com/users/brownstein/following{/other_user}","gists_url":"https://api.github.com/users/brownstein/gists{/gist_id}","starred_url":"https://api.github.com/users/brownstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brownstein/subscriptions","organizations_url":"https://api.github.com/users/brownstein/orgs","repos_url":"https://api.github.com/users/brownstein/repos","events_url":"https://api.github.com/users/brownstein/events{/privacy}","received_events_url":"https://api.github.com/users/brownstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-14T14:41:29Z","updated_at":"2016-04-17T19:15:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansman/validate.js/pulls/119","html_url":"https://github.com/ansman/validate.js/pull/119","diff_url":"https://github.com/ansman/validate.js/pull/119.diff","patch_url":"https://github.com/ansman/validate.js/pull/119.patch"},"body":"Added a new validator called \"values\", which takes validations to apply on all items within an array or object as its options parameter. This a non-invasive approach to supporting #94, the disadvantage of which is that some squashing occurs in the results of detailed output (since the outermost validator is used as the path for all of the array results). I should note that this works properly with async sub-validations.\r\n\r\nI'd advise using this version pending a larger rewrite - there's a lot that can be done to address some of the fundamental nesting issues in this library and add json-schema support in the same stroke if, for example, we were to add a more robust path resolution and storage phase."},"comment":{"url":"https://api.github.com/repos/ansman/validate.js/issues/comments/211089399","html_url":"https://github.com/ansman/validate.js/pull/119#issuecomment-211089399","issue_url":"https://api.github.com/repos/ansman/validate.js/issues/119","id":211089399,"user":{"login":"ansman","id":102883,"avatar_url":"https://avatars.githubusercontent.com/u/102883?v=3","gravatar_id":"","url":"https://api.github.com/users/ansman","html_url":"https://github.com/ansman","followers_url":"https://api.github.com/users/ansman/followers","following_url":"https://api.github.com/users/ansman/following{/other_user}","gists_url":"https://api.github.com/users/ansman/gists{/gist_id}","starred_url":"https://api.github.com/users/ansman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansman/subscriptions","organizations_url":"https://api.github.com/users/ansman/orgs","repos_url":"https://api.github.com/users/ansman/repos","events_url":"https://api.github.com/users/ansman/events{/privacy}","received_events_url":"https://api.github.com/users/ansman/received_events","type":"User","site_admin":false},"created_at":"2016-04-17T19:15:42Z","updated_at":"2016-04-17T19:15:42Z","body":"Thanks for putting a lot of effort into this.\r\n\r\nHowever, I don't want people to be dependent on this until proper nesting support is implemented, perhaps you could create a plugin that adds this validator?\r\n\r\nAlso, I need help figuring out which approach to take when it comes to nested validation. Would you be interested in participating in the discussion?"}}