Skip to main content

validate

Function validate 

Source
pub fn validate(envelope: &Envelope) -> Result<Vec<String>>
Expand description

Validate envelope against its registered per-capturer schema.

Returns the list of jsonschema diagnostics on mismatch — empty when valid. Returns an error if no schema is registered for the envelope’s capturer field (program error, not a data error).