legalize.js
legalize.js copied to clipboard
Pattern issue
Patterns checking was interfering with the object().type() checks. object().type() worked when the type had no keys (E.g. RegExp in the tests) but failed on a user defined type. Bug is corrected and a new test added.
Also added arity checking to the func() schema.