Skip to main content

validate_output

Function validate_output 

Source
pub fn validate_output(value: &Value, schema: &Value) -> Result<(), String>
Expand description

Validate a JSON value against a JSON Schema.

Returns Ok(()) if valid, or Err(message) with a human-readable validation error description.