Update for new combinator API

master
Sven Slootweg 4 years ago
parent f4e1daa3d5
commit 7901a3e75f

@ -15,7 +15,7 @@ module.exports = function (rules) {
let keyRules = defaultValue(rules.key, []);
let valueRules = defaultValue(rules.value, []);
return combinator((object, applyValidators) => {
let validator = combinator((object, applyValidators) => {
let newObject = {};
let allErrors = [];
@ -50,5 +50,9 @@ module.exports = function (rules) {
});
}
});
validator.callIfNull = false;
return validator;
}
};

Loading…
Cancel
Save