Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: