Skip to main content

validate_output_str

Function validate_output_str 

Source
pub fn validate_output_str(
    content: &str,
    schema: &Value,
) -> Result<Value, String>
Expand description

Validate a JSON string against a JSON Schema.

Attempts to parse the string as JSON first, then validates against the schema.