Skip to main content

resolve_errors

Function resolve_errors 

Source
pub fn resolve_errors(
    view: &mut JsonUiView,
    errors: &HashMap<String, Vec<String>>,
)
Expand description

Walk the component tree and set the first validation error message on each matching form field component (Input, Select, Checkbox, Switch).

Only fields whose error is currently None are updated; explicit errors set by the caller take priority.