--- id: jsonschema-rs version: "0.49.9" license: MIT license_treatment: permissive maintenance: active --- # jsonschema-rs — A high-performance JSON Schema validator for Python License: permissive · Maintenance: active · Downloads: 6.2M/mo ## What it is and what it does jsonschema-rs is a JSON Schema validator written in Rust and exposed to Python, designed for high-performance validation of JSON data against schema documents. It supports JSON Schema drafts 4, 6, 7, 2019-09, and 2020-12, with automatic draft detection or explicit draft-specific validators. The package provides multiple validation modes: one-off validation, reusable validator objects, error iteration, boolean checks, and structured output conforming to JSON Schema Output v1. The library handles standard format validation (date, email, etc.) and allows custom format validators and keywords to be defined as Python functions or classes. It supports remote reference fetching, meta-schema validation, and schema bundling. With zero runtime dependencies and pre-built wheels for modern Python versions on common architectures, it aims to be a drop-in replacement for the pure-Python jsonschema library with significantly better performance. Use it for: - Validate API request/response payloads against OpenAPI or JSON Schema specifications in web services - Check configuration files or data exports conform to expected schemas before processing - Implement domain-specific validation rules by defining custom keywords and format validators - Migrate from pure-Python jsonschema to gain performance without changing validation logic - Generate detailed error reports and evaluation traces for debugging schema mismatches ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. jsonschema-rs validates JSON data against JSON Schema documents using a Rust-backed implementation for high performance, supporting drafts 4 through 2020-12 with customizable format validators and keywords. Yes. jsonschema-rs is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and offers a significant performance advantage over pure-Python alternatives with minimal install friction on modern platforms. It is suitable for production use in validation-heavy workloads and as a drop-in replacement for jsonschema. Install it if you validate JSON frequently or need to support multiple schema drafts. ## Install pip install jsonschema-rs uv add jsonschema-rs poetry add jsonschema-rs ## Installing jsonschema-rs Before you install: Medium install friction due to compiled wheels; however, wheels are pre-built for common platforms (x86_64, aarch64, i686, Windows, macOS, Linux) and Python 3.10+, so installation typically succeeds without compilation. Actively maintained with a release 5 days old. License in practice: MIT license is permissive and imposes no significant restrictions on use, modification, or distribution in proprietary or open-source projects. Quickstart: pip install jsonschema-rs import jsonschema_rs schema = {"maxLength": 5} validator = jsonschema_rs.validator_for(schema) assert validator.is_valid("foo") Requires Python 3.10 or later; pre-built wheels available for most platforms but may require a Rust toolchain if a wheel is unavailable for your platform. Verify before relying: - Performance benchmarks comparing jsonschema-rs to pure-Python alternatives in real-world workloads - Whether custom keyword and format validator APIs are stable or subject to breaking changes - Support for remote schema references and network fetching behavior (mentioned but not detailed) ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 6.2M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags json schema validation, validate json data, json schema validator, schema compliance checking, json format validation, rust json validator, schema draft support, json-validation, rust-backed, schema-compliance [View on SkillFed](https://skillfed.io/packages/jsonschema-rs) · [View on PyPI](https://pypi.org/project/jsonschema-rs/)