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 nested partial to use attr_name instead of data_key for prefix (#2903)
* Fix nested partial to use attr_name instead of data_key
When building dot-delimited sub_partial for nested schemas, the prefix
was computed from field_name (which is data_key when set) instead of
attr_name. Since users specify partial fields using attribute names like
partial=("nested_field.child",), the prefix needs to match attr_name.
When data_key differs from attr_name, the prefix mismatch caused the
nested partial list to always be empty, so the nested schema never
received the partial option and required fields raised unexpected
validation errors.
* Add test for nested partial with data_key using attr_name prefix
* Update authors and changelog
---------
Co-authored-by: Jared Deckard <jared@shademaps.com>
Co-authored-by: Steven Loria <git@stevenloria.com>
0 commit comments