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
{{ message }}
Repository navigation
Make api_merge_patch_maps the default in 6.0 #8931
#8921 added api_merge_patch_maps (opt-in in 5.1): on PATCH, string-keyed arrays (array<string, mixed>) are deep-merged as RFC 7396 says, and a null member removes the key. Without the flag the map is replaced wholesale and nulls are stored as values, which isn't what merge-patch means.
It's opt-in because it changes behavior for existing clients. We should make it the default in 6.0.
Before that:
scope it to application/merge-patch+json only, JSON:API doesn't define deep merges
in a 5.x minor (5.2, Deprecate the unset opt-in flags that become defaults in 6.0 #8933), trigger a deprecation when a PATCH hits a string-keyed map and the flag isn't set explicitly, so only affected users get it (api_merge_patch_maps: false keeps the current behavior and silences it)
Activity