mafintosh / is-my-json-valid

A JSONSchema validator that uses code generation to be extremely fast
MIT License
965 stars 111 forks source link

add test for false negative on multipleOf #192

Open pubkey opened 2 years ago

pubkey commented 2 years ago

Using multipleOf 0.01 fails to validate a big number that does not contain a decimal part.

1658529657949.05 is valid, as it should be. 165 is valid, as it should be. 1658529657949 is not valid, but should be valid.

NOTICE: This PR adds a failing test, but it does not contain a proper solution. Do not merge this without a fix.