{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/waterline/issues/824","labels_url":"https://api.github.com/repos/balderdashy/waterline/issues/824/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/waterline/issues/824/comments","events_url":"https://api.github.com/repos/balderdashy/waterline/issues/824/events","html_url":"https://github.com/balderdashy/waterline/issues/824","id":56527695,"number":824,"title":"Use Joi for validation","user":{"login":"mattapperson","id":192433,"avatar_url":"https://avatars.githubusercontent.com/u/192433?v=3","gravatar_id":"","url":"https://api.github.com/users/mattapperson","html_url":"https://github.com/mattapperson","followers_url":"https://api.github.com/users/mattapperson/followers","following_url":"https://api.github.com/users/mattapperson/following{/other_user}","gists_url":"https://api.github.com/users/mattapperson/gists{/gist_id}","starred_url":"https://api.github.com/users/mattapperson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattapperson/subscriptions","organizations_url":"https://api.github.com/users/mattapperson/orgs","repos_url":"https://api.github.com/users/mattapperson/repos","events_url":"https://api.github.com/users/mattapperson/events{/privacy}","received_events_url":"https://api.github.com/users/mattapperson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/balderdashy/waterline/labels/feature","name":"feature","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/balderdashy/waterline/milestones/8","labels_url":"https://api.github.com/repos/balderdashy/waterline/milestones/8/labels","id":765772,"number":8,"title":"0.11","description":"","creator":{"login":"tjwebb","id":1009114,"avatar_url":"https://avatars.githubusercontent.com/u/1009114?v=3","gravatar_id":"","url":"https://api.github.com/users/tjwebb","html_url":"https://github.com/tjwebb","followers_url":"https://api.github.com/users/tjwebb/followers","following_url":"https://api.github.com/users/tjwebb/following{/other_user}","gists_url":"https://api.github.com/users/tjwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/tjwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjwebb/subscriptions","organizations_url":"https://api.github.com/users/tjwebb/orgs","repos_url":"https://api.github.com/users/tjwebb/repos","events_url":"https://api.github.com/users/tjwebb/events{/privacy}","received_events_url":"https://api.github.com/users/tjwebb/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":3,"state":"open","created_at":"2014-08-26T09:01:15Z","updated_at":"2015-02-04T18:19:13Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-02-04T13:45:21Z","updated_at":"2015-02-04T21:49:54Z","closed_at":null,"body":"Waterline is a great project, but the validation in models is a little weak. Had or would consideration be given to moving to https://github.com/hapijs/joi for this aspect of the project? "},"comment":{"url":"https://api.github.com/repos/balderdashy/waterline/issues/comments/72946999","html_url":"https://github.com/balderdashy/waterline/issues/824#issuecomment-72946999","issue_url":"https://api.github.com/repos/balderdashy/waterline/issues/824","id":72946999,"user":{"login":"kevinburkeshyp","id":10735057,"avatar_url":"https://avatars.githubusercontent.com/u/10735057?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinburkeshyp","html_url":"https://github.com/kevinburkeshyp","followers_url":"https://api.github.com/users/kevinburkeshyp/followers","following_url":"https://api.github.com/users/kevinburkeshyp/following{/other_user}","gists_url":"https://api.github.com/users/kevinburkeshyp/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinburkeshyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinburkeshyp/subscriptions","organizations_url":"https://api.github.com/users/kevinburkeshyp/orgs","repos_url":"https://api.github.com/users/kevinburkeshyp/repos","events_url":"https://api.github.com/users/kevinburkeshyp/events{/privacy}","received_events_url":"https://api.github.com/users/kevinburkeshyp/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T21:49:54Z","updated_at":"2015-02-04T21:49:54Z","body":"maybe could try relying on your database for validation? for example with\nnot null constraints, or in postgres you can do CHECK positive_number\n(amount > 0). pretty sure range constraints are pretty easy as well. that\nway bad values can't sneak in.\n\nOn Wed, Feb 4, 2015 at 1:32 PM, Matt Apperson <notifications@github.com>\nwrote:\n\n> ill take a look and see what I / my team can do :)\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/balderdashy/waterline/issues/824#issuecomment-72943929>\n> .\n>\n\n\n\n-- \nkevin\n"}}