id update creates a delete and add difference
The question is, should only the add - add be a conflict or also delete - add and add - delete?
2 unit tests in up-up.test.ts
smart city class property id update -> up-up conflict
reference from smart city outgoing to Component/Project/Category with reference id update -> up-up conflict
Example
Left:
{
op: "delete",
path: "/package/classes/0/references/0",
value: {
id: "name1",
containment: true,
upperBound: -1,
lowerBound: 0,
type: {
$ref: "#/package/classes/3",
},
},
},
{
op: "add",
path: "/package/classes/0/references/0",
value: {
id: "name2",
containment: true,
upperBound: -1,
lowerBound: 0,
type: {
$ref: "#/package/classes/2",
},
},
}
Right:
{
op: "delete",
path: "/package/classes/0/references/0",
value: {
id: "name1",
containment: true,
upperBound: -1,
lowerBound: 0,
type: {
$ref: "#/package/classes/3",
},
},
},
{
op: "add",
path: "/package/classes/0/references/0",
value: {
id: "name3",
containment: true,
upperBound: -1,
lowerBound: 0,
type: {
$ref: "#/package/classes/1",
},
},
}
id update creates a
deleteandadddifferenceThe question is, should only the
add - addbe a conflict or alsodelete - addandadd - delete?2 unit tests in up-up.test.ts
smart city class property id update -> up-up conflictreference from smart city outgoing to Component/Project/Category with reference id update -> up-up conflictExample
Left:
Right: