github Stranger6667/jsonschema python-v0.35.0
[Python] Release 0.35.0

latest releases: ruby-v0.46.5, python-v0.46.5, rust-v0.46.5...
6 months ago

Added

  • Support for custom meta-schemas. Schemas with custom $schema URIs can now be used by registering their meta-schemas via the registry parameter in validator_for(). #664
  • registry parameter to meta.is_valid() and meta.validate() for validating schemas against custom meta-schemas.
  • Type stubs for the meta module.
  • PyPy 3.11 support. #309
  • Support for arbitrary-precision numbers, including large integers and high-precision decimals that exceed standard floating-point limits. #103
  • Support for HTTPS $schema URIs for drafts 04, 06, and 07 (e.g., https://json-schema.org/draft-07/schema). #802

Changed

  • BREAKING: meta.is_valid() and meta.validate() now raise ReferencingError for unknown $schema values instead of defaulting to Draft 2020-12. Use the registry parameter to validate against custom meta-schemas.
  • Migrated to abi3, so a single wheel per platform works on all supported 3.10+ interpreters.

Removed

  • Support for Python 3.8 & 3.9.

Performance

  • required: short-circuit when the instance object has fewer properties than required keys.
  • Arbitrary precision support is always enabled. Performance impact is negligible for most schemas, with ~2x slowdown only for number-heavy instances (e.g., GeoJSON).

Don't miss a new jsonschema release

NewReleases is sending notifications on new releases.