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

allErrors requires includeErrors #113

Closed ChALkeR closed 4 years ago

ChALkeR commented 4 years ago

Also rename errors internal variable to errorCount to avoid confusion, and avoid defining it needlessly when allErrors !== true.

Strict mode prevents from accidentally defining global variables, so this is secure and we won't slip in unnoticed allErrors usage without definition.

Depends on #112.

codecov-commenter commented 4 years ago

Codecov Report

Merging #113 into chalker/better-errors2 will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted Files Coverage Δ
src/index.js 98.83% <100.00%> (+<0.01%) :arrow_up: