Skip to main content

validate

Function validate 

Source
pub fn validate(schema: &Value, value: &Value) -> ValidationResult
Expand description

Validate a JSON value against a JSON Schema.

Invalid schemas and structural-limit violations are converted to a ValidationResult for compatibility with callers that expect validation failures rather than hard errors.