Skip to main content

check

Function check 

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

Whether value matches schema: Err names the first place it does not (/factor: expected a number, got a string). A schema that is not an object (true, null) accepts everything; false accepts nothing.