Skip to main content

FixFn

Type Alias FixFn 

Source
pub type FixFn = fn(&ValidationContext<'_>, &[Violation]) -> Option<GraphPatch>;
Expand description

Optional auto-fix function type.

Receives the context and violations emitted by the corresponding RuleFn. Returns a GraphPatch (opaque in v1 — see below) that the validator applies before writing NDJSON. Returning None leaves the graph unchanged.

GraphPatch is a placeholder type in v1; the auto-fix write path is out of scope for this cluster.