Skip to main content

validate

Function validate 

Source
pub fn validate(
    schema: &Schema,
    value: &Spanned<RonValue>,
) -> Vec<ValidationError>
Expand description

Validates a parsed RON value against a schema.

Returns all validation errors found — does not stop at the first error. An empty vec means the data is valid.