You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix serde(rename_all) breaking ActiveModel::from_json field defaulting (#2855)
Fixes a regression from #2842: with a `#[serde(rename_all = ...)]` container attribute (or field-level `rename`), `ActiveModel::from_json` stopped defaulting missing fields to `ActiveValue::NotSet` and instead errored with "missing field".
Rebuilds the default-merge keyed off `col.json_key()` (which respects both `rename_all` and field-level `rename`) and the per-column dummy `ActiveValue`, instead of serializing a dummy model whose keys could mismatch.
Closes#2854.
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
0 commit comments