|
1133 | 1133 | }, |
1134 | 1134 | { |
1135 | 1135 | "$ref": "#/components/parameters/mergeDescription" |
| 1136 | + }, |
| 1137 | + { |
| 1138 | + "$ref": "#/components/parameters/pageAfter" |
| 1139 | + }, |
| 1140 | + { |
| 1141 | + "$ref": "#/components/parameters/pageBefore" |
| 1142 | + }, |
| 1143 | + { |
| 1144 | + "$ref": "#/components/parameters/pageSize" |
1136 | 1145 | } |
1137 | 1146 | ], |
1138 | 1147 | "requestBody": { |
|
1164 | 1173 | "required": false |
1165 | 1174 | }, |
1166 | 1175 | "responses": { |
1167 | | - "200": { |
1168 | | - "description": "OK", |
| 1176 | + "201": { |
| 1177 | + "description": "Created", |
| 1178 | + "content": { |
| 1179 | + "application/json": { |
| 1180 | + "schema": { |
| 1181 | + "$ref": "#/components/schemas/Commit" |
| 1182 | + }, |
| 1183 | + "examples": { |
| 1184 | + "Merged": { |
| 1185 | + "$ref": "#/components/examples/MergeCommit" |
| 1186 | + } |
| 1187 | + } |
| 1188 | + } |
| 1189 | + } |
| 1190 | + }, |
| 1191 | + "409": { |
| 1192 | + "description": "Conflict", |
1169 | 1193 | "content": { |
1170 | 1194 | "application/json": { |
1171 | 1195 | "schema": { |
1172 | 1196 | "type": "array", |
1173 | 1197 | "items": { |
1174 | | - "$ref": "#/components/schemas/MergeResult" |
| 1198 | + "$ref": "#/components/schemas/DataIdentity" |
1175 | 1199 | } |
1176 | 1200 | }, |
1177 | 1201 | "examples": { |
1178 | | - "ConflictFreeMergeResult": { |
1179 | | - "$ref": "#/components/examples/ConflictFreeMergeResult" |
1180 | | - }, |
1181 | | - "ConflictingMergeResult": { |
1182 | | - "$ref": "#/components/examples/ConflictingMergeResult" |
| 1202 | + "Conflicting": { |
| 1203 | + "$ref": "#/components/examples/MergeConflicting" |
1183 | 1204 | } |
1184 | 1205 | } |
1185 | 1206 | } |
|
2798 | 2819 | ], |
2799 | 2820 | "additionalProperties": false |
2800 | 2821 | }, |
2801 | | - "MergeResult": { |
2802 | | - "$id": "https://www.omg.org/spec/SystemsModelingAPI/20230201/MergeResult", |
2803 | | - "title": "MergeResult", |
2804 | | - "allOf": [ |
2805 | | - { |
2806 | | - "oneOf": [ |
2807 | | - { |
2808 | | - "type": "object", |
2809 | | - "properties": { |
2810 | | - "@type": { |
2811 | | - "type": "string", |
2812 | | - "const": "MergeResult" |
2813 | | - }, |
2814 | | - "conflict": { |
2815 | | - "type": "array", |
2816 | | - "maxItems": 0 |
2817 | | - }, |
2818 | | - "mergeCommit": { |
2819 | | - "$ref": "#/components/schemas/Commit" |
2820 | | - } |
2821 | | - } |
2822 | | - }, |
2823 | | - { |
2824 | | - "type": "object", |
2825 | | - "properties": { |
2826 | | - "@type": { |
2827 | | - "type": "string", |
2828 | | - "const": "MergeResult" |
2829 | | - }, |
2830 | | - "conflict": { |
2831 | | - "type": "array", |
2832 | | - "items": { |
2833 | | - "$ref": "#/components/schemas/DataIdentity" |
2834 | | - }, |
2835 | | - "minItems": 1 |
2836 | | - }, |
2837 | | - "mergeCommit": { |
2838 | | - "type": "null" |
2839 | | - } |
2840 | | - } |
2841 | | - } |
2842 | | - ] |
2843 | | - }, |
2844 | | - { |
2845 | | - "required": [ |
2846 | | - "@type", |
2847 | | - "conflict", |
2848 | | - "mergeCommit" |
2849 | | - ] |
2850 | | - } |
2851 | | - ] |
2852 | | - }, |
2853 | 2822 | "Query": { |
2854 | 2823 | "$id": "https://www.omg.org/spec/SystemsModelingAPI/20230201/Query", |
2855 | 2824 | "title": "Query", |
@@ -229273,26 +229242,32 @@ |
229273 | 229242 | } |
229274 | 229243 | ] |
229275 | 229244 | }, |
229276 | | - "ConflictFreeMergeResult": { |
| 229245 | + "MergeCommit": { |
229277 | 229246 | "value": { |
229278 | | - "@type": "MergeResult", |
229279 | | - "conflict": [], |
229280 | | - "mergeCommit": { |
229281 | | - "$ref": "#/components/examples/Commit/value" |
229282 | | - } |
229283 | | - } |
229284 | | - }, |
229285 | | - "ConflictingMergeResult": { |
229286 | | - "value": { |
229287 | | - "@type": "MergeResult", |
229288 | | - "conflict": [ |
| 229247 | + "@id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
| 229248 | + "@type": "Commit", |
| 229249 | + "created": "1970-01-01T00:00:00.000Z", |
| 229250 | + "description": "string", |
| 229251 | + "owningProject": { |
| 229252 | + "@id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
| 229253 | + }, |
| 229254 | + "previousCommit": [ |
| 229255 | + { |
| 229256 | + "@id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
| 229257 | + }, |
229289 | 229258 | { |
229290 | | - "$ref": "#/components/examples/DataIdentity/value" |
| 229259 | + "@id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
229291 | 229260 | } |
229292 | | - ], |
229293 | | - "mergeCommit": null |
| 229261 | + ] |
229294 | 229262 | } |
229295 | 229263 | }, |
| 229264 | + "MergeConflicting": { |
| 229265 | + "value": [ |
| 229266 | + { |
| 229267 | + "$ref": "#/components/examples/DataIdentity/value" |
| 229268 | + } |
| 229269 | + ] |
| 229270 | + }, |
229296 | 229271 | "Query": { |
229297 | 229272 | "value": { |
229298 | 229273 | "@id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
0 commit comments