jsonschema-rs
jsonschema-rs copied to clipboard
JSON Schema validation library
```rust use jsonschema::JSONSchema; use serde_json::json; fn main() { let schema = json!({ "$defs": { "root": { "oneOf": [ { "type": "object", "properties": { "a": { "type": "number" } } },...
Thanks for that great crate! I want to use this crate via Python but this module lacks i17n support so I should try parse English and translate into Japanese. I...
Rewrite
### Overview This is a work-in-progress PR that brings the `jsonschema-rewrite` crate that takes a different approach to its internal structure. At a certain stage, it will be ready for...
this eliminates the dependency on num 0.2.1, allowing the use of num 0.4.0
I got a feature request in a project that uses the library to validate file paths in a document. It would make sense to _simply_ add a validator that would...
In draft2019-09, [`$ref` was changed to allow other keywords alongside it](https://json-schema.org/draft/2019-09/release-notes.html). I ran into this while trying to validate an openapi spec against [the published OAS 3.1 schema](https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.1/schema.json). In particular,...
Already, jsonschema-rs is quite performant. However, have you looked into using crates like [simd-json](https://crates.io/crates/simd-json), [simdutf8](https://crates.io/crates/simdutf8) to make it even faster?
In `keywords::helpers::equal` there is no need to compare those, as we know upfront that they are never equal. At the moment all cases are just passed to `NumCmp`