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). Applying patches is part
of the deferred auto-fix write path (ADR-034) — no validator currently
invokes fix functions or applies patches. 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.