validate_config_file

Function validate_config_file 

Source
pub fn validate_config_file(
    file_path: &Path,
    schema_type: &str,
    schema: &Value,
) -> Result<ValidationResult, Box<dyn Error>>
Expand description

Validate a config file against its corresponding JSON Schema

§Arguments

  • file_path - Path to the config file (YAML or JSON)
  • schema_type - Type of schema to validate against (config, reality, persona, blueprint)
  • schema - The JSON Schema to validate against

§Returns

A ValidationResult indicating whether validation passed and any errors