jhthorsen / json-validator

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

Fix the coercion of boolean value 'false' #214

Closed SebMourlhou closed 4 years ago

SebMourlhou commented 4 years ago

With "coerce bool" activated, the result of the coercion of the string 'false' should be false and not true.

jhthorsen commented 4 years ago

Oh! This is really bad 😞

I've fixed this in c64c8fb, since I also wanted to coerce the strings "0" and "1".