Skip to main content

validate

Function validate 

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

Validate value against schema. Returns the first problem found, with a JSON-pointer-like path.