Skip to content

Releases: python-jsonschema/jsonschema

v4.17.3

Choose a tag to compare

@github-actions github-actions released this 29 Nov 20:37
  • Fix instantiating validators with cached refs to boolean schemas
    rather than objects (#1018).
  • Empty strings are not valid relative JSON Pointers (aren't valid under the
    RJP format).
  • Durations without (trailing) units are not valid durations (aren't
    valid under the duration format). This involves changing the dependency
    used for validating durations (from isoduration to isodate).

Full Changelog: v4.17.2...v4.17.3

v4.17.1

Choose a tag to compare

@github-actions github-actions released this 22 Nov 23:59
  • The error message when using unevaluatedProperties with a non-trivial
    schema value (i.e. something other than false) has been improved (#996).

Full Changelog: v4.17.0...v4.17.1

v4.17.0

Choose a tag to compare

@github-actions github-actions released this 01 Nov 22:27
  • The check_schema method on jsonschema.protocols.Validator instances now enables format validation by default when run. This can catch some additional invalid schemas (e.g. containing invalid regular expressions) where the issue is indeed uncovered by validating against the metaschema with format validation enabled as an assertion.
  • The jsonschema CLI (along with jsonschema.cli the module) are now deprecated. Use check-jsonschema instead, which can be installed via pip install check-jsonschema and found here.
  • Make ErrorTree have a more grammatically correct repr.

Full Changelog: v4.16.0...v4.17.0

v4.16.0

Choose a tag to compare

@github-actions github-actions released this 09 Sep 09:46
  • Improve the base URI behavior when resolving a $ref to a resolution URI
    which is different from the resolved schema's declared $id.
  • Accessing jsonschema.draftN_format_checker is deprecated. Instead, if you
    want access to the format checker itself, it is exposed as
    jsonschema.validators.DraftNValidator.FORMAT_CHECKER on any
    jsonschema.protocols.Validator.

Full Changelog: v4.15.0...v4.16.0

v4.15.0

Choose a tag to compare

@github-actions github-actions released this 31 Aug 09:29

What's Changed

  • Enable dedicated API documentation page(s) by @Julian in #989

Full Changelog: v4.14.0...v4.15.0

v4.14.0

Choose a tag to compare

@github-actions github-actions released this 21 Aug 10:48
  • FormatChecker.cls_checks is deprecated. Use FormatChecker.checks on
    an instance of FormatChecker instead.
  • unevaluatedItems has been fixed for draft 2019. It's nonetheless
    discouraged to use draft 2019 for any schemas, new or old.
  • Fix a number of minor annotation issues in protocols.Validator

Full Changelog: v4.13.0...v4.14.0

v4.13.0

Choose a tag to compare

@github-actions github-actions released this 19 Aug 12:31
  • Add support for creating validator classes whose metaschema uses a different
    dialect than its schemas. In other words, they may use draft2020-12 to define
    which schemas are valid, but the schemas themselves use draft7 (or a custom
    dialect, etc.) to define which instances are valid. Doing this is likely
    not something most users, even metaschema authors, may need, but occasionally
    will be useful for advanced use cases.

Full Changelog: v4.12.1...v4.13.0

v4.12.1

Choose a tag to compare

@github-actions github-actions released this 18 Aug 10:20

What's Changed

Full Changelog: v4.12.0...v4.12.1

v4.12.0

Choose a tag to compare

@github-actions github-actions released this 18 Aug 10:20
  • Warn at runtime when subclassing validator classes. Doing so was not
    intended to be public API, though it seems some downstream libraries
    do so. A future version will make this an error, as it is brittle and
    better served by composing validator objects instead. Feel free to reach
    out if there are any cases where changing existing code seems difficult
    and I can try to provide guidance.

Full Changelog: v4.11.0...v4.12.0

v4.11.0

Choose a tag to compare

@github-actions github-actions released this 18 Aug 09:22

What's Changed

  • jsonschema deserves a ✨fancy✨ readme by @hynek in #983

Full Changelog: v4.10.3...v4.11.0