@ -55,7 +56,14 @@ module.exports = function hasShape(rules) {
leterrors=[];
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).