Skip to main content

validate_against_schema

Function validate_against_schema 

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

Validates input against the structural subset of schema documented at module level.

ยงErrors

Returns a human-readable description of the first violation, naming the JSON path where it occurred.