Skip to main content

extract_include_entries

Function extract_include_entries 

Source
pub fn extract_include_entries(v: &Value) -> Vec<IncludeEntry>
Expand description

Parse the top-level include: value into a flat list of IncludeEntrys.

include: accepts five shapes — string, sequence-of-strings, sequence-of-mappings, sequence-of-strings-mixed-with-mappings, and a single mapping. Normalise all of them into one flat list so the rule layer doesn’t have to.