Skip to main content

validate

Function validate 

Source
pub(crate) fn validate(
    value: &Value,
    edit: &SettingsEdit,
    path: &str,
) -> Result<(), WriteError>
Expand description

Validate one value against a key’s edit spec without applying it, so a tool can refuse a wrong type before it asks the reader anything.