Skip to main content

attach_recommendations

Function attach_recommendations 

Source
pub fn attach_recommendations(
    doc: &mut Value,
    recommendations: &[(String, usize)],
)
Expand description

Add the dry run’s recommendations key: opt-in adapters detected but switched off.

Additive, and only on the bulk run --dry-run document, so every existing consumer of the run schema keeps parsing untouched. Left out entirely when there is nothing to recommend: an empty array would make “no key” and “empty list” two spellings of the same fact.