Ruby JSON Schema Validator v2.8.1 Release Notes

Release Date: 2018-10-14 // about 3 years ago
  • ๐Ÿ”„ Changed

    • All limit classes are now stored in their own files in 'json-schema/attributes/limits'
    • All attribute classes are now stored in their own files in 'json-schema/attributes'

    ๐Ÿ›  Fixed

    • Corrected the draft6 schema id to http://json-schema.org/draft/schema#
    • Rescue URI error when initializing a data string that contains a colon
    • Fragments with an odd number of components no longer raise an undefined methodvalidate'` error

Previous changes from v2.8.0

  • โž• Added

    • ๐Ÿ’Ž Ruby 2.4 support

    ๐Ÿ”„ Changed

    • ๐Ÿ“œ Made the :clear_cache option for validate also clear the URI parse cache
    • ๐Ÿšš Moved JSON::Validator.absolutize_ref and the ref manipulating code in JSON::Schema::RefAttribute into JSON::Util::URI
    • ๐Ÿ’Ž Made validation errors refer to json schema types not ruby types

    ๐Ÿ—„ Deprecated

    • JSON::Validator#validator_for in favor of JSON::Validator#validator_for_uri
    • JSON::Validator.validate2 in favor of JSON::Validator.validate!
    • JSON::Schema::Validator#extend_schema_definition in favour of subclassing