Skip to main content

validate_raw_yaml

Function validate_raw_yaml 

Source
pub fn validate_raw_yaml(yaml_value: &Value, file_path: &str) -> Result<()>
Expand description

Validate a raw YAML-authored value against the JSON Schema before deserialization.

This is the validation path used by the loader so that unknown fields and other authoring-time mistakes are rejected before serde can apply defaults or drop data.