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