{"action":"created","issue":{"url":"https://api.github.com/repos/theadam/node-schema/issues/3","repository_url":"https://api.github.com/repos/theadam/node-schema","labels_url":"https://api.github.com/repos/theadam/node-schema/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/theadam/node-schema/issues/3/comments","events_url":"https://api.github.com/repos/theadam/node-schema/issues/3/events","html_url":"https://github.com/theadam/node-schema/issues/3","id":132549727,"number":3,"title":"why is there no synchronous api?","user":{"login":"wellsjo","id":823446,"avatar_url":"https://avatars.githubusercontent.com/u/823446?v=3","gravatar_id":"","url":"https://api.github.com/users/wellsjo","html_url":"https://github.com/wellsjo","followers_url":"https://api.github.com/users/wellsjo/followers","following_url":"https://api.github.com/users/wellsjo/following{/other_user}","gists_url":"https://api.github.com/users/wellsjo/gists{/gist_id}","starred_url":"https://api.github.com/users/wellsjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wellsjo/subscriptions","organizations_url":"https://api.github.com/users/wellsjo/orgs","repos_url":"https://api.github.com/users/wellsjo/repos","events_url":"https://api.github.com/users/wellsjo/events{/privacy}","received_events_url":"https://api.github.com/users/wellsjo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-09T22:05:42Z","updated_at":"2016-02-11T16:49:19Z","closed_at":null,"body":"By forcing an async paradigm, consumers of this module are forced to write more code to get around the `Schema.validate().then()...` construct.  The vast majority of schema checks are synchronous (checking stuff like length or matching a regex). \r\n\r\nSchema.validate() could work synchronously with an async option for those few cases that need it."},"comment":{"url":"https://api.github.com/repos/theadam/node-schema/issues/comments/182953801","html_url":"https://github.com/theadam/node-schema/issues/3#issuecomment-182953801","issue_url":"https://api.github.com/repos/theadam/node-schema/issues/3","id":182953801,"user":{"login":"wellsjo","id":823446,"avatar_url":"https://avatars.githubusercontent.com/u/823446?v=3","gravatar_id":"","url":"https://api.github.com/users/wellsjo","html_url":"https://github.com/wellsjo","followers_url":"https://api.github.com/users/wellsjo/followers","following_url":"https://api.github.com/users/wellsjo/following{/other_user}","gists_url":"https://api.github.com/users/wellsjo/gists{/gist_id}","starred_url":"https://api.github.com/users/wellsjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wellsjo/subscriptions","organizations_url":"https://api.github.com/users/wellsjo/orgs","repos_url":"https://api.github.com/users/wellsjo/repos","events_url":"https://api.github.com/users/wellsjo/events{/privacy}","received_events_url":"https://api.github.com/users/wellsjo/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T16:49:18Z","updated_at":"2016-02-11T16:49:18Z","body":"I see you point and agree after taking a look at the code again. I wouldn't worry about it.  I made my own simple synchronous version https://github.com/littlstar/json-struct"}}