Bot releases are visible (Hide)
Full Changelog: https://github.com/harrel56/json-schema/compare/1.7.0...1.7.1
Published by harrel56 3 months ago
Despite the fact that this is just a minor release, there are a few incompatible changes. I believe that they realistically shouldn't affect any users, but if you use this library in an uncommon or advanced way, I'd recommend to familiarize yourself with the "breaking changes" section below.
General revamp on handling dialects. It supports now cross-dialect references and dynamically infers which dialect should be used based on $schema value.
There are no direct API changes, only these methods change behavior slightly:
ValidatorFactory.withDisabledSchemaValidation()
- now, setting it to true
does not disable vocabularies semantics as well (which I think was more of an unexpected side effect). It will use vocabularies from Dialect
instances (official or custom if provided). It still guarantees that meta-schemas will not be resolved, so e.g. schemas with "$schema": "http://json-schema.org/draft-03/schema#"
will not fail despite lack of draft3 support.ValidatorFactory.withDialect()
- previously, it served as a hard dialect override, meaning just this one dialect would be used regardless of $schema
keyword. Now, this method registers your custom dialect and can be called multiple times for multiple registrations.There is one new method:
ValidatorFactory.withDefaultDialect()
- it serves similar purpose as ValidatorFactory.withDialect()
previously did. By default, it's set on draf2020-12. It's just a fallback when schema does not contain $schema
keyword.If you've overridden Evaluator.getVocabularies()
, it will now have no effect as this method is no longer called by the library. If evaluator is dependent on active vocabularies state, it should now be handled in EvaluatorFactory
code.
draft2020-12
, draft2019-09
and draft-07
are supportedFull Changelog: https://github.com/harrel56/json-schema/compare/1.6.1...1.7.0
Published by harrel56 4 months ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.6.0...1.6.1
Published by harrel56 6 months ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.5.2...1.6.0
Published by harrel56 8 months ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.5.1...1.5.2
Published by harrel56 8 months ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.5.0...1.5.1
Published by harrel56 11 months ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.4.3...1.5.0
Published by harrel56 11 months ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.4.2...1.4.3
Published by harrel56 11 months ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.4.1...1.4.2
Published by harrel56 11 months ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.4.0...1.4.1
Published by harrel56 12 months ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.3.4...1.4.0
Published by harrel56 about 1 year ago
Update optional dependencies - mitigate json.org CVE
Full Changelog: https://github.com/harrel56/json-schema/compare/1.3.3...1.3.4
Published by harrel56 about 1 year ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.3.2...1.3.3
Published by harrel56 about 1 year ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.3.1...1.3.2
Published by harrel56 about 1 year ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.3.0...1.3.1
Published by harrel56 about 1 year ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.2.2...1.3.0
Published by harrel56 about 1 year ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.2.1...1.2.2
Published by harrel56 about 1 year ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.2.0...1.2.1
Published by harrel56 over 1 year ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.1.0...1.2.0
Published by harrel56 over 1 year ago
Full Changelog: https://github.com/harrel56/json-schema/compare/1.0.0...1.1.0