Skip to content

Commit 621883f

Browse files
committed
feat: add diff & merge operations
2 parents 21ef5c4 + 1e6971b commit 621883f

7 files changed

Lines changed: 4265 additions & 4181 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",

conf/json/schema/metamodel/schemas.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424
},
2525
"annotatedElement": {
26-
"type": "array",in
26+
"type": "array",
2727
"items": {
2828
"$ref": "http://www.omg.org/spec/SysML/2.0/Identified",
2929
"$comment": "http://www.omg.org/spec/SysML/2.0/Element"

public/docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</head>
77
<body>
88
<rapi-doc
9-
spec-url="openapi.json"
9+
spec-url="openapi-sans-schemas.json"
1010
show-components="true"
1111
allow-spec-file-load="false"
1212
allow-authentication="false"

0 commit comments

Comments
 (0)