Skip to main content

validate_widget_configs

Function validate_widget_configs 

Source
pub(crate) fn validate_widget_configs(
    widgets: &HashMap<String, WidgetConfigType>,
)
Expand description

Soft validation for widget entries loaded from widgets.json: a widget must be either a leaf (non-empty blockdef.meta) or a parent (non-empty children), never neither, never both. Logged as a startup warning, not a hard failure, matching how other config issues are handled.