{"action":"created","issue":{"url":"https://api.github.com/repos/Yomguithereal/baobab/issues/263","labels_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/263/comments","events_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/263/events","html_url":"https://github.com/Yomguithereal/baobab/issues/263","id":87254439,"number":263,"title":"Can validation be run on tree creation?","user":{"login":"tnrich","id":2730609,"avatar_url":"https://avatars.githubusercontent.com/u/2730609?v=3","gravatar_id":"","url":"https://api.github.com/users/tnrich","html_url":"https://github.com/tnrich","followers_url":"https://api.github.com/users/tnrich/followers","following_url":"https://api.github.com/users/tnrich/following{/other_user}","gists_url":"https://api.github.com/users/tnrich/gists{/gist_id}","starred_url":"https://api.github.com/users/tnrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnrich/subscriptions","organizations_url":"https://api.github.com/users/tnrich/orgs","repos_url":"https://api.github.com/users/tnrich/repos","events_url":"https://api.github.com/users/tnrich/events{/privacy}","received_events_url":"https://api.github.com/users/tnrich/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Yomguithereal/baobab/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Yomguithereal/baobab/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-11T08:08:37Z","updated_at":"2015-09-28T14:45:12Z","closed_at":"2015-09-28T14:45:12Z","body":"Hey @Yomguithereal, \r\n\r\nQuick question:\r\n\r\nCan the validation function we specify be run on the baobab tree upon its creation? Right now it looks to me like it isn't being run until something is updated within the tree, but I think it would be nice to be able to have the validation be done on the initial creation as well to make sure the data you're instantiating the tree with is all valid. \r\n\r\nAlso, +1 to the ideas voiced in #56 of (1) having some sort of shortcut to validate just specific parts of the tree and (2) having a way for the validation function to determine what happens when invalid data is encountered.\r\n\r\nThanks a bunch!"},"comment":{"url":"https://api.github.com/repos/Yomguithereal/baobab/issues/comments/143763937","html_url":"https://github.com/Yomguithereal/baobab/issues/263#issuecomment-143763937","issue_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/263","id":143763937,"user":{"login":"Yomguithereal","id":2571951,"avatar_url":"https://avatars.githubusercontent.com/u/2571951?v=3","gravatar_id":"","url":"https://api.github.com/users/Yomguithereal","html_url":"https://github.com/Yomguithereal","followers_url":"https://api.github.com/users/Yomguithereal/followers","following_url":"https://api.github.com/users/Yomguithereal/following{/other_user}","gists_url":"https://api.github.com/users/Yomguithereal/gists{/gist_id}","starred_url":"https://api.github.com/users/Yomguithereal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yomguithereal/subscriptions","organizations_url":"https://api.github.com/users/Yomguithereal/orgs","repos_url":"https://api.github.com/users/Yomguithereal/repos","events_url":"https://api.github.com/users/Yomguithereal/events{/privacy}","received_events_url":"https://api.github.com/users/Yomguithereal/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T14:45:12Z","updated_at":"2015-09-28T14:45:12Z","body":"Validation now runs on instantiation."}}