json-schema

JSON schema validation library written in Java

MIT License

Stars
19
Committers
5

Bot releases are hidden (Show)

json-schema - 1.7.1 Latest Release

Published by harrel56 2 months ago

What's Changed

Fixes 🛠️

Dependencies 🗃️

Full Changelog: https://github.com/harrel56/json-schema/compare/1.7.0...1.7.1

json-schema - 1.7.0

Published by harrel56 3 months ago

Important notice

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.

What's Changed

Breaking changes 🚨

Feature/cross spec by @harrel56 in https://github.com/harrel56/json-schema/pull/204

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.

Refactor/handle vocabs in evaluator factory by @harrel56 in https://github.com/harrel56/json-schema/pull/211

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.

New features 🎉

Dependencies 🗃️

Full Changelog: https://github.com/harrel56/json-schema/compare/1.6.1...1.7.0

json-schema - 1.6.1

Published by harrel56 4 months ago

What's Changed

Fixes 🛠️

Dependencies 🗃️

Full Changelog: https://github.com/harrel56/json-schema/compare/1.6.0...1.6.1

json-schema - 1.6.0

Published by harrel56 6 months ago

What's Changed

New features 🎉

Performance related 📈

Fixes 🛠️

Dependencies 🗃️

Other

Full Changelog: https://github.com/harrel56/json-schema/compare/1.5.2...1.6.0

json-schema - 1.5.2

Published by harrel56 8 months ago

What's Changed

Performance related 📈

Full Changelog: https://github.com/harrel56/json-schema/compare/1.5.1...1.5.2

json-schema - 1.5.1

Published by harrel56 8 months ago

What's Changed

Features

Performance related

Dependencies

Other

Full Changelog: https://github.com/harrel56/json-schema/compare/1.5.0...1.5.1

json-schema - 1.5.0

Published by harrel56 11 months ago

What's Changed

Features

Fixes

Dependencies

Full Changelog: https://github.com/harrel56/json-schema/compare/1.4.3...1.5.0

json-schema - 1.4.3

Published by harrel56 11 months ago

What's Changed

Performance related

Fixes

Dependencies

Full Changelog: https://github.com/harrel56/json-schema/compare/1.4.2...1.4.3

json-schema - 1.4.2

Published by harrel56 11 months ago

What's Changed

Full Changelog: https://github.com/harrel56/json-schema/compare/1.4.1...1.4.2

json-schema - 1.4.1

Published by harrel56 11 months ago

What's Changed

Full Changelog: https://github.com/harrel56/json-schema/compare/1.4.0...1.4.1

json-schema - 1.4.0

Published by harrel56 12 months ago

  • added draft2019-09 specification support
  • more refined URI handling and references resolution

What's Changed

Full Changelog: https://github.com/harrel56/json-schema/compare/1.3.4...1.4.0

json-schema - 1.3.4

Published by harrel56 about 1 year ago

Update optional dependencies - mitigate json.org CVE

What's Changed

Full Changelog: https://github.com/harrel56/json-schema/compare/1.3.3...1.3.4

json-schema - 1.3.3

Published by harrel56 about 1 year ago

What's Changed

Full Changelog: https://github.com/harrel56/json-schema/compare/1.3.2...1.3.3

json-schema - 1.3.2

Published by harrel56 about 1 year ago

What's Changed

Full Changelog: https://github.com/harrel56/json-schema/compare/1.3.1...1.3.2

json-schema - 1.3.1

Published by harrel56 about 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/harrel56/json-schema/compare/1.3.0...1.3.1

json-schema - 1.3.0

Published by harrel56 about 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/harrel56/json-schema/compare/1.2.2...1.3.0

json-schema - 1.2.2

Published by harrel56 about 1 year ago

What's Changed

Full Changelog: https://github.com/harrel56/json-schema/compare/1.2.1...1.2.2

json-schema - 1.2.1

Published by harrel56 about 1 year ago

What's Changed

Full Changelog: https://github.com/harrel56/json-schema/compare/1.2.0...1.2.1

json-schema - 1.2.0

Published by harrel56 over 1 year ago

What's Changed

Full Changelog: https://github.com/harrel56/json-schema/compare/1.1.0...1.2.0

json-schema - 1.1.0

Published by harrel56 over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/harrel56/json-schema/compare/1.0.0...1.1.0