Changes for version 5.00 - 2021-10-02

  • Validation is much faster
  • Fix "$defs" in draft7 is "definitions"
  • Add benchmark.t to track validation speed
    • Runtime v4.21: 2.62s (n=200)
    • Runtime v5.00: 1.52s (n=200)
  • Add JSON::Validator::Store::resolve()
  • Add JSON::Validator::URI
  • Fix incorrect validation error paths when validating references to same object #244
  • Changed JSON::Validator::Util::is_type()
    • Add JSON::Validator::Util::is_bool()
    • Add JSON::Validator::Util::is_num()
  • Changed bundled definitions/$defs names
  • Changed invalid schema id/$id will not croak
  • Changed internal _validation_xxx() methods to take $state
  • Removed support for bundle({replace => 1}) #194
  • Removed JSON::Validator::OpenAPIv2::allow_invalid_ref()
  • Removed JSON::Validator::Ref
  • Removed JSON::Validator::Util::json_pointer()
  • Removed JSON::Validator::Util::schema_extract()

Modules

Validate data against a JSON schema
JSON::Validator error object
Functions for validating JSON schema formats
Joi validation sugar for JSON::Validator
Base class for JSON::Validator schemas
JSON-Schema Draft 2019-09
JSON-Schema Draft 4
JSON-Schema Draft 6
JSON-Schema Draft 7
OpenAPI version 2 / Swagger
Load and caching JSON schemas
Uniform Resource Identifier
Utility functions for JSON::Validator