tv4
tv4 copied to clipboard
Tiny Validator for JSON Schema v4
Results
102
tv4 issues
Sort by
recently updated
recently updated
newest added
The calculation of the remainder in the validateMultipleOf function (line 776 in the tv4.js file) is wrong for the case in which the data is a negative number, in which...
The validateMultipleOf function fails for negative numbers since the remainder changes sign and this no longer fits in the [CLOSE_ENOUGH_LOW, CLOSE_ENOUGH_HIGH] interval as explained in https://github.com/geraintluff/tv4/issues/281 The fix uses the...