validate_against_schema

Function validate_against_schema 

Source
pub fn validate_against_schema(
    schema: &Value,
    args: &Value,
) -> Result<(), ToolError>
Expand description

Validate a JSON value against a JSON Schema.

Returns Ok(()) if the value conforms to the schema, or Err(ToolError::InvalidArguments) with a description of all violations.