{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/validation/issues/332","repository_url":"https://api.github.com/repos/aurelia/validation","labels_url":"https://api.github.com/repos/aurelia/validation/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/validation/issues/332/comments","events_url":"https://api.github.com/repos/aurelia/validation/issues/332/events","html_url":"https://github.com/aurelia/validation/issues/332","id":177415490,"number":332,"title":"Conditional validation - sub-objects","user":{"login":"jsobell","id":834155,"avatar_url":"https://avatars.githubusercontent.com/u/834155?v=3","gravatar_id":"","url":"https://api.github.com/users/jsobell","html_url":"https://github.com/jsobell","followers_url":"https://api.github.com/users/jsobell/followers","following_url":"https://api.github.com/users/jsobell/following{/other_user}","gists_url":"https://api.github.com/users/jsobell/gists{/gist_id}","starred_url":"https://api.github.com/users/jsobell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsobell/subscriptions","organizations_url":"https://api.github.com/users/jsobell/orgs","repos_url":"https://api.github.com/users/jsobell/repos","events_url":"https://api.github.com/users/jsobell/events{/privacy}","received_events_url":"https://api.github.com/users/jsobell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aurelia/validation/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-16T12:38:50Z","updated_at":"2016-09-18T17:09:41Z","closed_at":null,"body":"So we're seeing the first issue I mentioned re recursive validation requirements.\r\nhttps://gist.run/?id=6f32a7865a306daa1062e84a10b6c493\r\n@dtaalbers posted this as a requirement to only validate the address if the checkbox is ticked.\r\nSo he has a validation on the Driver object, but that is being validated regardless of the when clause, as we can't sensibly add the .when to the child and have it refer to a property in the parent.\r\nNot sure of the right way to approach this..."},"comment":{"url":"https://api.github.com/repos/aurelia/validation/issues/comments/247860094","html_url":"https://github.com/aurelia/validation/issues/332#issuecomment-247860094","issue_url":"https://api.github.com/repos/aurelia/validation/issues/332","id":247860094,"user":{"login":"jdanyow","id":1306747,"avatar_url":"https://avatars.githubusercontent.com/u/1306747?v=3","gravatar_id":"","url":"https://api.github.com/users/jdanyow","html_url":"https://github.com/jdanyow","followers_url":"https://api.github.com/users/jdanyow/followers","following_url":"https://api.github.com/users/jdanyow/following{/other_user}","gists_url":"https://api.github.com/users/jdanyow/gists{/gist_id}","starred_url":"https://api.github.com/users/jdanyow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdanyow/subscriptions","organizations_url":"https://api.github.com/users/jdanyow/orgs","repos_url":"https://api.github.com/users/jdanyow/repos","events_url":"https://api.github.com/users/jdanyow/events{/privacy}","received_events_url":"https://api.github.com/users/jdanyow/received_events","type":"User","site_admin":false},"created_at":"2016-09-18T17:09:41Z","updated_at":"2016-09-18T17:09:41Z","body":"In the specific example mentioned in the gist ^^^ I'd do something like this: https://gist.run/?id=419abb8656c1c19395cd1b3aa45bac45\r\n"}}
{"actor":{"display_login":"jdanyow"}}