{"action":"created","issue":{"url":"https://api.github.com/repos/ctavan/express-validator/issues/122","labels_url":"https://api.github.com/repos/ctavan/express-validator/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/ctavan/express-validator/issues/122/comments","events_url":"https://api.github.com/repos/ctavan/express-validator/issues/122/events","html_url":"https://github.com/ctavan/express-validator/issues/122","id":59406711,"number":122,"title":"Calling an async method from a custom validator","user":{"login":"stonebraker","id":1234785,"avatar_url":"https://avatars.githubusercontent.com/u/1234785?v=3","gravatar_id":"","url":"https://api.github.com/users/stonebraker","html_url":"https://github.com/stonebraker","followers_url":"https://api.github.com/users/stonebraker/followers","following_url":"https://api.github.com/users/stonebraker/following{/other_user}","gists_url":"https://api.github.com/users/stonebraker/gists{/gist_id}","starred_url":"https://api.github.com/users/stonebraker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stonebraker/subscriptions","organizations_url":"https://api.github.com/users/stonebraker/orgs","repos_url":"https://api.github.com/users/stonebraker/repos","events_url":"https://api.github.com/users/stonebraker/events{/privacy}","received_events_url":"https://api.github.com/users/stonebraker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ctavan/express-validator/labels/question","name":"question","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-01T17:14:48Z","updated_at":"2015-07-01T06:09:32Z","closed_at":null,"body":"I'm attempting to write an isUnique custom validator which requires an async call to mongo. However, custom validators are implemented as synchronous methods without callbacks. Can you recommend a technique for accomplishing this? "},"comment":{"url":"https://api.github.com/repos/ctavan/express-validator/issues/comments/117444876","html_url":"https://github.com/ctavan/express-validator/issues/122#issuecomment-117444876","issue_url":"https://api.github.com/repos/ctavan/express-validator/issues/122","id":117444876,"user":{"login":"sluchznak","id":4091442,"avatar_url":"https://avatars.githubusercontent.com/u/4091442?v=3","gravatar_id":"","url":"https://api.github.com/users/sluchznak","html_url":"https://github.com/sluchznak","followers_url":"https://api.github.com/users/sluchznak/followers","following_url":"https://api.github.com/users/sluchznak/following{/other_user}","gists_url":"https://api.github.com/users/sluchznak/gists{/gist_id}","starred_url":"https://api.github.com/users/sluchznak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sluchznak/subscriptions","organizations_url":"https://api.github.com/users/sluchznak/orgs","repos_url":"https://api.github.com/users/sluchznak/repos","events_url":"https://api.github.com/users/sluchznak/events{/privacy}","received_events_url":"https://api.github.com/users/sluchznak/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T06:09:32Z","updated_at":"2015-07-01T06:09:32Z","body":"Hi, i have the same problem. Please, notify me, when you find solution"}}