Skip to main content

validate_json_schema

Function validate_json_schema 

Source
pub fn validate_json_schema(
    text: &str,
    schema: &Value,
) -> Result<Value, Vec<String>>
Expand description

Parse text as JSON and validate it against a JSON schema.

Returns the parsed JSON value, or a list of validation error strings.