Skip to main content

validate_payload

Function validate_payload 

Source
pub fn validate_payload(
    payload: &Value,
    source: &str,
) -> Result<Vec<Value>, SchemaMismatch>
Expand description

Validates a parsed JSON payload against the spec-001 shape and returns its violations array. source is a short human-readable identifier (typically a file path) included in the error message. Mirrors diff.py::validate_payload.