Skip to main content

validate

Function validate 

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

Validates a parsed RON value against a schema.

Returns all validation errors and warnings found — does not stop at the first error. An empty errors vec means the data is valid. Warnings are informational only.