{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-validator/issues/10","labels_url":"https://api.github.com/repos/vuejs/vue-validator/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-validator/issues/10/comments","events_url":"https://api.github.com/repos/vuejs/vue-validator/issues/10/events","html_url":"https://github.com/vuejs/vue-validator/issues/10","id":66683273,"number":10,"title":"Async validation?","user":{"login":"drewhamlett","id":1056587,"avatar_url":"https://avatars.githubusercontent.com/u/1056587?v=3","gravatar_id":"","url":"https://api.github.com/users/drewhamlett","html_url":"https://github.com/drewhamlett","followers_url":"https://api.github.com/users/drewhamlett/followers","following_url":"https://api.github.com/users/drewhamlett/following{/other_user}","gists_url":"https://api.github.com/users/drewhamlett/gists{/gist_id}","starred_url":"https://api.github.com/users/drewhamlett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewhamlett/subscriptions","organizations_url":"https://api.github.com/users/drewhamlett/orgs","repos_url":"https://api.github.com/users/drewhamlett/repos","events_url":"https://api.github.com/users/drewhamlett/events{/privacy}","received_events_url":"https://api.github.com/users/drewhamlett/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vuejs/vue-validator/labels/feature","name":"feature","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-06T19:18:34Z","updated_at":"2015-07-31T11:41:48Z","closed_at":"2015-07-31T06:59:06Z","body":"Using Promises?\r\n\r\n```js\r\n    validator: {\r\n      validates: {\r\n        email: function (val) {\r\n          return /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/.test(val)\r\n        },\r\n        remote: function (val) {\r\n          new Promise(function (resolve, reject) {\r\n            setTimeout(function () {\r\n              if (val.length > 3) {\r\n                return resolve(true)\r\n              }\r\n              return reject();\r\n            }, 500);\r\n          });\r\n        }\r\n      }\r\n    },\r\n```"},"comment":{"url":"https://api.github.com/repos/vuejs/vue-validator/issues/comments/126663458","html_url":"https://github.com/vuejs/vue-validator/issues/10#issuecomment-126663458","issue_url":"https://api.github.com/repos/vuejs/vue-validator/issues/10","id":126663458,"user":{"login":"drewhamlett","id":1056587,"avatar_url":"https://avatars.githubusercontent.com/u/1056587?v=3","gravatar_id":"","url":"https://api.github.com/users/drewhamlett","html_url":"https://github.com/drewhamlett","followers_url":"https://api.github.com/users/drewhamlett/followers","following_url":"https://api.github.com/users/drewhamlett/following{/other_user}","gists_url":"https://api.github.com/users/drewhamlett/gists{/gist_id}","starred_url":"https://api.github.com/users/drewhamlett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewhamlett/subscriptions","organizations_url":"https://api.github.com/users/drewhamlett/orgs","repos_url":"https://api.github.com/users/drewhamlett/repos","events_url":"https://api.github.com/users/drewhamlett/events{/privacy}","received_events_url":"https://api.github.com/users/drewhamlett/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T11:41:48Z","updated_at":"2015-07-31T11:41:48Z","body":"Thank you!"}}