Compare commits

...

2 Commits

@ -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;
} }
}; };

@ -6,7 +6,7 @@
"validator", "validator",
"combinator" "combinator"
], ],
"version": "0.1.2", "version": "0.1.3",
"main": "index.js", "main": "index.js",
"repository": "http://git.cryto.net/validatem/any-property.git", "repository": "http://git.cryto.net/validatem/any-property.git",
"author": "Sven Slootweg <admin@cryto.net>", "author": "Sven Slootweg <admin@cryto.net>",

Loading…
Cancel
Save