jhthorsen / json-validator

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

fix use of true, false (sub)schemas #190

Closed karenetheridge closed 4 years ago

karenetheridge commented 4 years ago

Summary

Now accepts (sub)schemas that are the boolean values true or false.

Motivation

true and false are valid subschemas in draft 6 and later, as per https://json-schema.org/understanding-json-schema/basics.html

karenetheridge commented 4 years ago

JSON::PP::true, JSON::PP::false can be replaced with just false and true.

fixed.

jhthorsen commented 4 years ago

Thanks for the PR 👍