{"action":"opened","issue":{"url":"https://api.github.com/repos/aurelia/validation/issues/214","labels_url":"https://api.github.com/repos/aurelia/validation/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/validation/issues/214/comments","events_url":"https://api.github.com/repos/aurelia/validation/issues/214/events","html_url":"https://github.com/aurelia/validation/issues/214","id":129773002,"number":214,"title":"Trigger an optional callback when validation rules change state","user":{"login":"RichTeaTime","id":16083760,"avatar_url":"https://avatars.githubusercontent.com/u/16083760?v=3","gravatar_id":"","url":"https://api.github.com/users/RichTeaTime","html_url":"https://github.com/RichTeaTime","followers_url":"https://api.github.com/users/RichTeaTime/followers","following_url":"https://api.github.com/users/RichTeaTime/following{/other_user}","gists_url":"https://api.github.com/users/RichTeaTime/gists{/gist_id}","starred_url":"https://api.github.com/users/RichTeaTime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichTeaTime/subscriptions","organizations_url":"https://api.github.com/users/RichTeaTime/orgs","repos_url":"https://api.github.com/users/RichTeaTime/repos","events_url":"https://api.github.com/users/RichTeaTime/events{/privacy}","received_events_url":"https://api.github.com/users/RichTeaTime/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-29T13:59:24Z","updated_at":"2016-01-29T13:59:24Z","closed_at":null,"body":"The existing ```ValidationGroup.onValidate``` callbacks are only triggered on a manual ```ValidationGroup.validate()``` call, but the setting and unsetting of validity on any added rules is still being performed - based on the binding model - in the background.\r\n\r\nThis issue suggests adding an extra ```ValidationGroup.onResultPropertyChanged(callback)``` function, which will trigger the callback on each occasion that a ```ValidationResultProperty```'s onValidate callbacks are triggered.\r\n\r\nCurrent implementation is limited by the fact that if any validation rules are added against new binding properties after this call is made, they will not trigger the callback (as it currently just iterates the ```ValidationResultProperty``` objects in ```ValidationResult`` when called).\r\n"}}