@ -55,7 +56,14 @@ module.exports = function hasShape(rules) {
leterrors=[];
leterrors=[];
letnewObject={};
letnewObject={};
for(let[key,value]ofObject.entries(object)){
// We need to consider the keys from the ruleset (for detecting missing required properties) *and* the keys from the actual object (for handling extraneous values).