jhthorsen / json-validator

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

unsupported keywords for numeric types: exclusiveMaximum, exclusiveMinimum #191

Closed karenetheridge closed 4 years ago

karenetheridge commented 4 years ago

described here: https://json-schema.org/understanding-json-schema/reference/numeric.html?highlight=exclusivemaximum
https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2.3

jhthorsen commented 4 years ago

Isn't that tested here? https://github.com/mojolicious/json-validator/blob/master/t/jv-number.t#L37

karenetheridge commented 4 years ago

apologies! I read the grep wrong! no excuses. :(

lib/JSON/Validator.pm:648:  my $cmp_with = $schema->{exclusiveMaximum} // '';
lib/JSON/Validator.pm:672:  my $cmp_with = $schema->{exclusiveMinimum} // '';
jhthorsen commented 4 years ago

No worries. Glad I didn't misunderstand 😄