flatiron / revalidator

A cross-browser / node.js validator powered by JSON Schema
http://github.com/flatiron/revalidator
Apache License 2.0
589 stars 82 forks source link

Fix for #105, with test #112

Closed cwp closed 6 years ago

cwp commented 8 years ago

When additionalProperties is present, but not falsy, validation throws an error. The problem is just that the array of unvisited property names is passed to validateProperty instead of the schema. Easy fix.