Skip to main content

validate_presets_strict

Function validate_presets_strict 

Source
pub fn validate_presets_strict(
    commands: &BTreeMap<String, CommandSpec>,
    schema: &Schema,
) -> Result<(), String>
Expand description

At load time, reject preset options: keys that are not declared in the enclosing schema. Runs only when schema.strict == true, and only against entries resolved to CommandKind::Presetrun: and path: kinds don’t share the parent schema.