Registry / serialization / jsonschema-valid

jsonschema-valid

JSON →
library0.5.2rscratesunverified

A simple JSON schema validator.

# Cargo.toml [dependencies] jsonschema-valid = "0.5.2"
INSTALL
IMPORT
SIG · JSONSCHEMA-VALID
J
jsonschema-valid
serializationrustv0.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

validate
use jsonschema_valid::validate;

Validates a JSON instance against a JSON schema.

use jsonschema_valid::validate; fn main() { let schema = serde_json::json!({}); let instance = serde_json::json!("hello"); match validate(&schema, &instance) { Ok(_) => println!("Valid"), Err(e) => println!("Invalid: {}", e), } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
jsonschema-valid — cargo add jsonschema-valid · libregistry