Compare commits

...

2 Commits

@ -27,7 +27,7 @@ function containsRules(rules) {
} }
module.exports = function hasShape(rules) { module.exports = function hasShape(rules) {
return combinator((object, applyValidators, context) => { let validator = combinator((object, applyValidators, context) => {
let allowExtraProperties = defaultValue(context.allowExtraProperties, false); let allowExtraProperties = defaultValue(context.allowExtraProperties, false);
let unexpectedPropertyErrors = asExpression(() => { let unexpectedPropertyErrors = asExpression(() => {
@ -80,4 +80,8 @@ module.exports = function hasShape(rules) {
}); });
} }
}); });
validator.callIfNull = false;
return validator;
}; };

@ -6,7 +6,7 @@
"validator", "validator",
"combinator" "combinator"
], ],
"version": "0.1.4", "version": "0.1.5",
"main": "index.js", "main": "index.js",
"repository": "http://git.cryto.net/validatem/has-shape.git", "repository": "http://git.cryto.net/validatem/has-shape.git",
"author": "Sven Slootweg <admin@cryto.net>", "author": "Sven Slootweg <admin@cryto.net>",

Loading…
Cancel
Save