pub struct ValidationResults {
pub valid: bool,
pub manifest_valid: bool,
pub dependencies_resolvable: bool,
pub sources_accessible: bool,
pub local_paths_exist: bool,
pub lockfile_consistent: bool,
pub templates_valid: bool,
pub templates_rendered: usize,
pub templates_total: usize,
pub errors: Vec<String>,
pub warnings: Vec<String>,
}Expand description
Results structure for validation operations, used primarily for JSON output.
This struct aggregates all validation results into a single structure that can be serialized to JSON for machine consumption. Each field represents the result of a specific validation check.
§Fields
valid: Overall validation status (no errors, or warnings in strict mode)manifest_valid: Whether the manifest file is syntactically validdependencies_resolvable: Whether all dependencies can be resolvedsources_accessible: Whether all source repositories are accessiblelocal_paths_exist: Whether all local file dependencies existlockfile_consistent: Whether the lockfile matches the manifesterrors: List of error messages that caused validation to failwarnings: List of warning messages (non-fatal issues)
§JSON Output Example
{
"valid": true,
"manifest_valid": true,
"dependencies_resolvable": true,
"sources_accessible": true,
"local_paths_exist": true,
"lockfile_consistent": false,
"errors": [],
"warnings": ["Lockfile is missing 2 dependencies"]
}Fields§
§valid: boolOverall validation status - true if no errors (and no warnings in strict mode)
manifest_valid: boolWhether the manifest file syntax and structure is valid
dependencies_resolvable: boolWhether all dependencies can be resolved to specific versions
sources_accessible: boolWhether all source repositories are accessible via network
local_paths_exist: boolWhether all local file dependencies point to existing files
lockfile_consistent: boolWhether the lockfile is consistent with the manifest
templates_valid: boolWhether all templates rendered successfully (when –render is used)
templates_rendered: usizeNumber of templates successfully rendered
templates_total: usizeTotal number of templates found
errors: Vec<String>List of error messages that caused validation failure
warnings: Vec<String>List of warning messages (non-fatal issues)