Skip to content

Commit

Permalink
Released version 3.04
Browse files Browse the repository at this point in the history
 - 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 jhthorsen#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
  • Loading branch information
Jan Henning Thorsen committed Jan 21, 2019
1 parent 046cd3f commit d877b2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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".
Expand Down
2 changes: 1 addition & 1 deletion lib/JSON/Validator.pm
Expand Up @@ -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));
Expand Down

0 comments on commit d877b2f

Please sign in to comment.