{"action":"opened","issue":{"url":"https://api.github.com/repos/meteor/method/issues/4","labels_url":"https://api.github.com/repos/meteor/method/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/meteor/method/issues/4/comments","events_url":"https://api.github.com/repos/meteor/method/issues/4/events","html_url":"https://github.com/meteor/method/issues/4","id":118515558,"number":4,"title":"Pluggable validation","user":{"login":"aldeed","id":3012067,"avatar_url":"https://avatars.githubusercontent.com/u/3012067?v=3","gravatar_id":"","url":"https://api.github.com/users/aldeed","html_url":"https://github.com/aldeed","followers_url":"https://api.github.com/users/aldeed/followers","following_url":"https://api.github.com/users/aldeed/following{/other_user}","gists_url":"https://api.github.com/users/aldeed/gists{/gist_id}","starred_url":"https://api.github.com/users/aldeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldeed/subscriptions","organizations_url":"https://api.github.com/users/aldeed/orgs","repos_url":"https://api.github.com/users/aldeed/repos","events_url":"https://api.github.com/users/aldeed/events{/privacy}","received_events_url":"https://api.github.com/users/aldeed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-24T01:54:17Z","updated_at":"2015-11-24T01:54:17Z","closed_at":null,"body":"Rather than depending on simple-schema, maybe I can add a function that throws a ValidationError in the simple-schema pkg.\r\n\r\n```\r\nvalidation: new SimpleSchema({\r\n    listId: { type: String }\r\n  }).validator()\r\n```\r\n\r\nAnd if you also want to keep the nice `schema` option, maybe by convention this pkg could call a `validator` function property on whatever is passed to `schema` without caring what it is. (`validator` would return a function that validates and throws ValidationErrors.)"}}