ExodusMovement / schemasafe

A reasonably safe JSON Schema validator with draft-04/06/07/2019-09/2020-12 support.
https://npmjs.com/@exodus/schemasafe
MIT License
161 stars 12 forks source link

Simplify error() function code #69

Closed ChALkeR closed 4 years ago

ChALkeR commented 4 years ago

This also fixes double 'return false' on includeErrors:

require('.').validator({type:'object'},{includeErrors:true}).toModule()

This doesn't change the actual behavior.