json-patch icon indicating copy to clipboard operation
json-patch copied to clipboard

Question: Merge conflicts

Open jiwanovski87 opened this issue 10 months ago • 0 comments

Introduction

I am new to this library and I wonder if it is possible to get merge conflicts?

Example

We have the following JSON documents

original

{
    "first_name": "Max",
    "last_name": "Mustermann",
    "birth_date": "2006-01-02"
}

target

{
    "first_name": "Max",
    "last_name": "Mustermann",
    "birth_date": "2006-10-02"
}

modified

{
    "first_name": "Max",
    "last_name": "Wedding",
    "birth_date": "2006-02-10"
}

In this case we should have an conflict on birth_date. The value is difference in each version of the json.

Any ideas to this?

jiwanovski87 avatar Feb 11 '25 16:02 jiwanovski87