unstale

pypi / jsonschema

jsonschema

What changed in jsonschema 4, from its official release notes, upgrade guides and advisories. Also covers types-jsonschema. Sources checked 2026-10-23.

3 breaking5 deprecations4 new APIs and options2 behavior and defaults2 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.3 on npm

jsonschema 416 changes

Breaking changes 3

  • DEFAULT_TYPES and the legacy validator type-specification mechanism were removed; customize Python types with TypeChecker.

    4.0.0release notes

  • False and 0 are now properly considered non-equal, including recursively within a container.

    4.0.0release notes

  • Support for Python 2 was dropped, and python_requires was properly set.

    4.0.0release notes

Deprecations 5

  • jsonschema.__version__ was deprecated.

    4.0.0release notes

  • jsonschema.RefResolver.in_scope was deprecated.

    4.0.0release notes

  • jsonschema.validators.meta_schemas was deprecated.

    4.0.0release notes

  • jsonschema.validators.validators was deprecated.

    4.0.0release notes

  • Passing a second-argument schema to Validator.iter_errors was deprecated.

    4.0.0release notes

New APIs and options 4

  • Partial support was added for Draft 2020-12, as well as 2019-09.

    4.0.0release notes

  • Validation errors now expose a json_path attribute describing their location in JSON path format.

    4.0.0release notes

  • The CLI option controls output format, accepting plain (the default) or pretty.

    4.0.0release notes

  • Validators should use TypeChecker to customize the set of Python types corresponding to JSON Schema types.

    4.0.0release notes

Behavior and default changes 2

  • Validators no longer import urllib.request at import time, avoiding that import-time side effect for developers importing the package.

    4.26.0release notes

  • Validation may be slower in some cases following the equality change.

    4.0.0release notes

Fixes and other changes 2

  • Support for IP address and domain name formats was improved.

    4.0.0release notes

  • When sufficiently large numbers cause overflow, validation now falls back to fraction division.

    4.0.0release notes