Skip to main content

validate_artifact

Function validate_artifact 

Source
pub fn validate_artifact(
    artifact: &Artifact,
    lowered: &LoweredScenario,
    kinds: &[StepKindSpec],
    diags: &mut Vec<Diag>,
)
Expand description

Parse-validate the exact emitted artifact text with the claiming engine’s real parser (--dry-run = §4.1–4.5 including artifact parse-validation). The diagnostic’s source is the emitted text itself, span at the broken line.

This is the single implementation of artifact parse-validation, shared by the CLI’s fail-fast front::run and the LSP’s collect-all analyze_suite. It reaches the hurl parser only through the injected StepKindSpec::validate function pointer, so it stays engine-agnostic and lives in the sans-IO core.