Skip to main content

validate_emc_schema

Function validate_emc_schema 

Source
pub fn validate_emc_schema(yaml: &Value) -> (Vec<String>, Vec<String>)
Expand description

Validate an EMC YAML document against the schema.

Returns a tuple of (errors, warnings). Errors indicate schema violations that must be fixed. Warnings indicate missing recommended fields.

§Arguments

  • yaml - The parsed YAML document to validate

§Returns

A tuple of (errors, warnings) vectors.