Browse code

api: align Topology in versioned OpenAPI specs with Segments JSON shape

Apply the same Topology schema fix as api/swagger.yaml to v1.42–v1.54
document snapshots so clients generating from pinned API versions see the
correct Segments map shape.

Signed-off-by: Nishant Maheshwari <mnishant222@gmail.com>
Made-with: Cursor

Nishant Maheshwari authored on 2026/04/16 04:56:25
Showing 13 changed files
... ...
@@ -6391,8 +6391,11 @@ definitions:
6391 6391
       details, see documentation for the Topology object in the CSI
6392 6392
       specification.
6393 6393
     type: "object"
6394
-    additionalProperties:
6395
-      type: "string"
6394
+    properties:
6395
+      Segments:
6396
+        type: "object"
6397
+        additionalProperties:
6398
+          type: "string"
6396 6399
 
6397 6400
 paths:
6398 6401
   /containers/json:
... ...
@@ -6424,8 +6424,11 @@ definitions:
6424 6424
       details, see documentation for the Topology object in the CSI
6425 6425
       specification.
6426 6426
     type: "object"
6427
-    additionalProperties:
6428
-      type: "string"
6427
+    properties:
6428
+      Segments:
6429
+        type: "object"
6430
+        additionalProperties:
6431
+          type: "string"
6429 6432
 
6430 6433
 paths:
6431 6434
   /containers/json:
... ...
@@ -6563,8 +6563,11 @@ definitions:
6563 6563
       details, see documentation for the Topology object in the CSI
6564 6564
       specification.
6565 6565
     type: "object"
6566
-    additionalProperties:
6567
-      type: "string"
6566
+    properties:
6567
+      Segments:
6568
+        type: "object"
6569
+        additionalProperties:
6570
+          type: "string"
6568 6571
 
6569 6572
 paths:
6570 6573
   /containers/json:
... ...
@@ -6549,8 +6549,11 @@ definitions:
6549 6549
       details, see documentation for the Topology object in the CSI
6550 6550
       specification.
6551 6551
     type: "object"
6552
-    additionalProperties:
6553
-      type: "string"
6552
+    properties:
6553
+      Segments:
6554
+        type: "object"
6555
+        additionalProperties:
6556
+          type: "string"
6554 6557
 
6555 6558
 paths:
6556 6559
   /containers/json:
... ...
@@ -6660,8 +6660,11 @@ definitions:
6660 6660
       details, see documentation for the Topology object in the CSI
6661 6661
       specification.
6662 6662
     type: "object"
6663
-    additionalProperties:
6664
-      type: "string"
6663
+    properties:
6664
+      Segments:
6665
+        type: "object"
6666
+        additionalProperties:
6667
+          type: "string"
6665 6668
 
6666 6669
 paths:
6667 6670
   /containers/json:
... ...
@@ -6682,8 +6682,11 @@ definitions:
6682 6682
       details, see documentation for the Topology object in the CSI
6683 6683
       specification.
6684 6684
     type: "object"
6685
-    additionalProperties:
6686
-      type: "string"
6685
+    properties:
6686
+      Segments:
6687
+        type: "object"
6688
+        additionalProperties:
6689
+          type: "string"
6687 6690
 
6688 6691
   ImageManifestSummary:
6689 6692
     x-go-name: "ManifestSummary"
... ...
@@ -7745,8 +7745,11 @@ definitions:
7745 7745
       details, see documentation for the Topology object in the CSI
7746 7746
       specification.
7747 7747
     type: "object"
7748
-    additionalProperties:
7749
-      type: "string"
7748
+    properties:
7749
+      Segments:
7750
+        type: "object"
7751
+        additionalProperties:
7752
+          type: "string"
7750 7753
 
7751 7754
   ImageManifestSummary:
7752 7755
     x-go-name: "ManifestSummary"
... ...
@@ -7745,8 +7745,11 @@ definitions:
7745 7745
       details, see documentation for the Topology object in the CSI
7746 7746
       specification.
7747 7747
     type: "object"
7748
-    additionalProperties:
7749
-      type: "string"
7748
+    properties:
7749
+      Segments:
7750
+        type: "object"
7751
+        additionalProperties:
7752
+          type: "string"
7750 7753
 
7751 7754
   ImageManifestSummary:
7752 7755
     x-go-name: "ManifestSummary"
... ...
@@ -7575,8 +7575,11 @@ definitions:
7575 7575
       details, see documentation for the Topology object in the CSI
7576 7576
       specification.
7577 7577
     type: "object"
7578
-    additionalProperties:
7579
-      type: "string"
7578
+    properties:
7579
+      Segments:
7580
+        type: "object"
7581
+        additionalProperties:
7582
+          type: "string"
7580 7583
 
7581 7584
   ImageManifestSummary:
7582 7585
     x-go-name: "ManifestSummary"
... ...
@@ -7596,8 +7596,11 @@ definitions:
7596 7596
       details, see documentation for the Topology object in the CSI
7597 7597
       specification.
7598 7598
     type: "object"
7599
-    additionalProperties:
7600
-      type: "string"
7599
+    properties:
7600
+      Segments:
7601
+        type: "object"
7602
+        additionalProperties:
7603
+          type: "string"
7601 7604
 
7602 7605
   ImageManifestSummary:
7603 7606
     x-go-name: "ManifestSummary"
... ...
@@ -7886,8 +7886,11 @@ definitions:
7886 7886
       details, see documentation for the Topology object in the CSI
7887 7887
       specification.
7888 7888
     type: "object"
7889
-    additionalProperties:
7890
-      type: "string"
7889
+    properties:
7890
+      Segments:
7891
+        type: "object"
7892
+        additionalProperties:
7893
+          type: "string"
7891 7894
 
7892 7895
   ImageManifestSummary:
7893 7896
     x-go-name: "ManifestSummary"
... ...
@@ -8134,8 +8134,11 @@ definitions:
8134 8134
       details, see documentation for the Topology object in the CSI
8135 8135
       specification.
8136 8136
     type: "object"
8137
-    additionalProperties:
8138
-      type: "string"
8137
+    properties:
8138
+      Segments:
8139
+        type: "object"
8140
+        additionalProperties:
8141
+          type: "string"
8139 8142
 
8140 8143
   ImageManifestSummary:
8141 8144
     x-go-name: "ManifestSummary"
... ...
@@ -8134,8 +8134,11 @@ definitions:
8134 8134
       details, see documentation for the Topology object in the CSI
8135 8135
       specification.
8136 8136
     type: "object"
8137
-    additionalProperties:
8138
-      type: "string"
8137
+    properties:
8138
+      Segments:
8139
+        type: "object"
8140
+        additionalProperties:
8141
+          type: "string"
8139 8142
 
8140 8143
   ImageManifestSummary:
8141 8144
     x-go-name: "ManifestSummary"