Skip to content

Commit

Permalink
Merge 9bc9df0 into def5a89
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-paris committed Nov 12, 2018
2 parents def5a89 + 9bc9df0 commit 9e4dde2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Expand Up @@ -151,7 +151,7 @@ Schema.prototype = {
errors = [errors];
}
if (errors.length) {
warning('async-validator:', errors);
Schema.warning('async-validator:', errors);
}
if (errors.length && rule.message) {
errors = [].concat(rule.message);
Expand Down Expand Up @@ -253,6 +253,8 @@ Schema.register = function register(type, validator) {
validators[type] = validator;
};

Schema.warning = warning;

Schema.messages = defaultMessages;

export default Schema;

0 comments on commit 9e4dde2

Please sign in to comment.