jhthorsen / json-validator

:cop: Validate data against a JSON schema
https://metacpan.org/release/JSON-Validator
57 stars 59 forks source link

fix bug coerce numbers vs negative/fraction/exp #89

Closed umann closed 6 years ago

umann commented 6 years ago

Fix for Bug: when coerce numbers is on, only non-negative integers are validated.

jhthorsen commented 6 years ago

Why was this closed?

umann commented 6 years ago

Because i realized this bug has been fixed, I had a too old version. Sorry.

jhthorsen commented 6 years ago

Ah! Cool 👍

mohawk2 commented 6 years ago

Might be worth reopening and still adding the test that @umann added? I like tests.

jhthorsen commented 6 years ago

Both the jv-integer.t and jv-number.t tests check for coercion as well.