Skip to main content

validate_json

Function validate_json 

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

Validate a JSON value against a JSON Schema.

Returns Ok(()) if the value conforms to the schema, or Err(errors) with a list of human-readable validation error messages.