3 ms·
One of the biggest drawbacks of jsonpatch is not being able to patch an associative array (e.g. arrays with a unique key element). This is most obvious in Kube
by alpb 2y ago
One of the biggest drawbacks of jsonpatch is not being able to patch an associative array (e.g. arrays with a unique key element).
This is most obvious in Kubernetes, where you have a list property like:
"conditions": [{"type":"a", "status":"b"}, {"type":"c", "status":"d"}, ...]
and you can't really create a patch like "change the conditions[type="a"].status to foo". As a result, you usually end up doing a whole field patch.