Skip to content

Commit 74b6875

Browse files
authored
Merge pull request #89 from Systems-Modeling/feature/ST5AS-222
feat: add diff & merge operations ST5AS-222
2 parents fd3e17b + 621883f commit 74b6875

5 files changed

Lines changed: 1056 additions & 42 deletions

File tree

conf/json/schema/api/schemas-sans-metamodel-requests.json

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,95 @@
648648
],
649649
"additionalProperties": false
650650
},
651+
"DataDifference": {
652+
"$id": "http://www.omg.org/spec/SysML/2.0/API/DataDifference",
653+
"title": "DataDifference",
654+
"type": "object",
655+
"properties": {
656+
"@type": {
657+
"type": "string",
658+
"const": "DataDifference"
659+
},
660+
"baseData": {
661+
"oneOf": [
662+
{
663+
"$ref": "http://www.omg.org/spec/SysML/2.0/API/DataVersion"
664+
},
665+
{
666+
"type": "null"
667+
}
668+
]
669+
},
670+
"compareData": {
671+
"oneOf": [
672+
{
673+
"$ref": "http://www.omg.org/spec/SysML/2.0/API/DataVersion"
674+
},
675+
{
676+
"type": "null"
677+
}
678+
]
679+
}
680+
},
681+
"required": [
682+
"@type",
683+
"baseData",
684+
"compareData"
685+
],
686+
"additionalProperties": false
687+
},
688+
"MergeResult": {
689+
"$id": "http://www.omg.org/spec/SysML/2.0/API/MergeResult",
690+
"title": "MergeResult",
691+
"allOf": [
692+
{
693+
"oneOf": [
694+
{
695+
"type": "object",
696+
"properties": {
697+
"@type": {
698+
"type": "string",
699+
"const": "MergeResult"
700+
},
701+
"conflict": {
702+
"type": "array",
703+
"maxItems": 0
704+
},
705+
"mergeCommit": {
706+
"$ref": "http://www.omg.org/spec/SysML/2.0/API/Commit"
707+
}
708+
}
709+
},
710+
{
711+
"type": "object",
712+
"properties": {
713+
"@type": {
714+
"type": "string",
715+
"const": "MergeResult"
716+
},
717+
"conflict": {
718+
"type": "array",
719+
"items": {
720+
"$ref": "http://www.omg.org/spec/SysML/2.0/API/DataIdentity"
721+
},
722+
"minItems": 1
723+
},
724+
"mergeCommit": {
725+
"type": "null"
726+
}
727+
}
728+
}
729+
]
730+
},
731+
{
732+
"required": [
733+
"@type",
734+
"conflict",
735+
"mergeCommit"
736+
]
737+
}
738+
]
739+
},
651740
"Query": {
652741
"$id": "http://www.omg.org/spec/SysML/2.0/API/Query",
653742
"title": "Query",

conf/json/schema/api/schemas.json

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,95 @@
648648
],
649649
"additionalProperties": false
650650
},
651+
"DataDifference": {
652+
"$id": "http://www.omg.org/spec/SysML/2.0/API/DataDifference",
653+
"title": "DataDifference",
654+
"type": "object",
655+
"properties": {
656+
"@type": {
657+
"type": "string",
658+
"const": "DataDifference"
659+
},
660+
"baseData": {
661+
"oneOf": [
662+
{
663+
"$ref": "http://www.omg.org/spec/SysML/2.0/API/DataVersion"
664+
},
665+
{
666+
"type": "null"
667+
}
668+
]
669+
},
670+
"compareData": {
671+
"oneOf": [
672+
{
673+
"$ref": "http://www.omg.org/spec/SysML/2.0/API/DataVersion"
674+
},
675+
{
676+
"type": "null"
677+
}
678+
]
679+
}
680+
},
681+
"required": [
682+
"@type",
683+
"baseData",
684+
"compareData"
685+
],
686+
"additionalProperties": false
687+
},
688+
"MergeResult": {
689+
"$id": "http://www.omg.org/spec/SysML/2.0/API/MergeResult",
690+
"title": "MergeResult",
691+
"allOf": [
692+
{
693+
"oneOf": [
694+
{
695+
"type": "object",
696+
"properties": {
697+
"@type": {
698+
"type": "string",
699+
"const": "MergeResult"
700+
},
701+
"conflict": {
702+
"type": "array",
703+
"maxItems": 0
704+
},
705+
"mergeCommit": {
706+
"$ref": "http://www.omg.org/spec/SysML/2.0/API/Commit"
707+
}
708+
}
709+
},
710+
{
711+
"type": "object",
712+
"properties": {
713+
"@type": {
714+
"type": "string",
715+
"const": "MergeResult"
716+
},
717+
"conflict": {
718+
"type": "array",
719+
"items": {
720+
"$ref": "http://www.omg.org/spec/SysML/2.0/API/DataIdentity"
721+
},
722+
"minItems": 1
723+
},
724+
"mergeCommit": {
725+
"type": "null"
726+
}
727+
}
728+
}
729+
]
730+
},
731+
{
732+
"required": [
733+
"@type",
734+
"conflict",
735+
"mergeCommit"
736+
]
737+
}
738+
]
739+
},
651740
"Query": {
652741
"$id": "http://www.omg.org/spec/SysML/2.0/API/Query",
653742
"title": "Query",

0 commit comments

Comments
 (0)