Skip to main content

normalized_param_values

Function normalized_param_values 

Source
pub fn normalized_param_values(
    record: &ModelRecord,
) -> BTreeMap<String, JsonValue>
Expand description

The record’s parameter values, each run through its spec: a value is kept only when its key still has a spec in the current schema AND the value coerces/clamps to that spec (see ParamSpec::normalized). Values for vanished parameters and wrong-typed / unnormalizable values are dropped, so nothing out-of-range or off-type can reach a runtime.