Skip to main content

validate_input

Function validate_input 

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

Validates a value against a schema, returning every violation found.

Call check_supported on the schema first; keywords outside the supported set are reported here as violations too, so an unchecked schema can never pass a value it does not understand.