jsonschema-rs is a high-performance JSON Schema validator for Python, backed by a Rust implementation. It provides fast validation of JSON data against JSON schemas according to various draft specifications. The library is actively maintained with frequent releases, often synchronized across its Python, Ruby, and Rust bindings.
pip install jsonschema-rsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to define a JSON schema, load it, and use `jsonschema_rs.JSONSchema` to validate JSON instances. It shows both a valid and an invalid instance, demonstrating how `ValidationError` is raised for invalid data.
Ensure your schemas and data adhere strictly to the JSON Schema specification for `multipleOf` on negative numbers. Review any tests that might have implicitly relied on the bug.
Verify that `duration` strings in your data strictly follow the ISO 8601 duration format as expected by the JSON Schema specification. Update data or schemas if necessary.
Update your CLI scripts to use the new `jsonschema validate` or `jsonschema bundle` subcommands for clarity and future compatibility.
Review `hostname` validation for schemas targeting Draft 4 or 6. Ensure your data conforms to the expected RFC 1034 semantics for these drafts, or consider updating to a newer draft if IDNA A-label validation is desired.
No dependency data recorded yet.