legalize.js icon indicating copy to clipboard operation
legalize.js copied to clipboard

Pattern issue

Open bldrvnlw opened this issue 6 years ago • 1 comments

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.

bldrvnlw avatar Aug 03 '18 11:08 bldrvnlw

Also added arity checking to the func() schema.

bldrvnlw avatar Aug 07 '18 08:08 bldrvnlw