Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Make api_merge_patch_maps the default in 6.0 #8931

Backlog

Description

@soyuka

#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)
  • 6.0: flip the default

Activity

  1. added this to the 6.0 milestone on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions