From d877b2f3d56f5b11a68dc280e0a7bea2f998f28b Mon Sep 17 00:00:00 2001 From: Jan Henning Thorsen Date: Mon, 21 Jan 2019 09:40:00 +0900 Subject: [PATCH] Released version 3.04 - Fix "uri" check, so that it only accept ASCII characters. Note that this fix might be an undesired change for your application. If so, then update the "uri" format in your schema to "iri". - Fix "hostname" format check, so it does not require a valid TLD - Fix validating draft-07 schema against itself #144 - Add support for more formats in JSON Schema draft-6 and 7: date, idn-email, idn-hostname, iri, iri-reference, json-pointer, relative-json-pointer, time, uri-reference and uri-template. - Add support for more keywords in draft-07 * 6.4.6. Arrays - contains * 6.5.8. Objects - propertyNames * 6.6.1. Objects - if * 6.6.2. Objects - then * 6.6.3. Objects - else --- Changes | 2 +- lib/JSON/Validator.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 04df1c4a..176b6b0e 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,6 @@ Revision history for perl distribution JSON-Validator -3.04 Not Released +3.04 2019-01-21T09:39:50+0900 - Fix "uri" check, so that it only accept ASCII characters. Note that this fix might be an undesired change for your application. If so, then update the "uri" format in your schema to "iri". diff --git a/lib/JSON/Validator.pm b/lib/JSON/Validator.pm index 3d7f5c53..dffb6cf0 100644 --- a/lib/JSON/Validator.pm +++ b/lib/JSON/Validator.pm @@ -24,7 +24,7 @@ use constant REPORT => $ENV{JSON_VALIDATOR_REPORT} // DEBUG >= 2; use constant RECURSION_LIMIT => $ENV{JSON_VALIDATOR_RECURSION_LIMIT} || 100; use constant SPECIFICATION_URL => 'http://json-schema.org/draft-04/schema#'; -our $VERSION = '3.03'; +our $VERSION = '3.04'; our @EXPORT_OK = qw(joi validate_json); my $BUNDLED_CACHE_DIR = path(path(__FILE__)->dirname, qw(Validator cache));