Parcourir la source

api: docs: move VolumeListResponse to definitions (v1.39-v1.41)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn il y a 3 ans
Parent
commit
54386f0c8f
3 fichiers modifiés avec 60 ajouts et 54 suppressions
  1. 20 18
      docs/api/v1.39.yaml
  2. 20 18
      docs/api/v1.40.yaml
  3. 20 18
      docs/api/v1.41.yaml

+ 20 - 18
docs/api/v1.39.yaml

@@ -1982,6 +1982,25 @@ definitions:
           com.example.some-label: "some-value"
           com.example.some-label: "some-value"
           com.example.some-other-label: "some-other-value"
           com.example.some-other-label: "some-other-value"
 
 
+  VolumeListResponse:
+    type: "object"
+    title: "VolumeListResponse"
+    x-go-name: "VolumeListOKBody"
+    description: "Volume list response"
+    properties:
+      Volumes:
+        type: "array"
+        description: "List of volumes"
+        items:
+          $ref: "#/definitions/Volume"
+      Warnings:
+        type: "array"
+        description: |
+          Warnings that occurred when fetching the list of volumes.
+        items:
+          type: "string"
+        example: []
+
   Network:
   Network:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -8570,24 +8589,7 @@ paths:
         200:
         200:
           description: "Summary volume data that matches the query"
           description: "Summary volume data that matches the query"
           schema:
           schema:
-            type: "object"
-            title: "VolumeListResponse"
-            description: "Volume list response"
-            required: [Volumes, Warnings]
-            properties:
-              Volumes:
-                type: "array"
-                x-nullable: false
-                description: "List of volumes"
-                items:
-                  $ref: "#/definitions/Volume"
-              Warnings:
-                type: "array"
-                x-nullable: false
-                description: |
-                  Warnings that occurred when fetching the list of volumes.
-                items:
-                  type: "string"
+            $ref: "#/definitions/VolumeListResponse"
         500:
         500:
           description: "Server error"
           description: "Server error"
           schema:
           schema:

+ 20 - 18
docs/api/v1.40.yaml

@@ -2043,6 +2043,25 @@ definitions:
           com.example.some-label: "some-value"
           com.example.some-label: "some-value"
           com.example.some-other-label: "some-other-value"
           com.example.some-other-label: "some-other-value"
 
 
+  VolumeListResponse:
+    type: "object"
+    title: "VolumeListResponse"
+    x-go-name: "VolumeListOKBody"
+    description: "Volume list response"
+    properties:
+      Volumes:
+        type: "array"
+        description: "List of volumes"
+        items:
+          $ref: "#/definitions/Volume"
+      Warnings:
+        type: "array"
+        description: |
+          Warnings that occurred when fetching the list of volumes.
+        items:
+          type: "string"
+        example: []
+
   Network:
   Network:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -8903,24 +8922,7 @@ paths:
         200:
         200:
           description: "Summary volume data that matches the query"
           description: "Summary volume data that matches the query"
           schema:
           schema:
-            type: "object"
-            title: "VolumeListResponse"
-            description: "Volume list response"
-            required: [Volumes, Warnings]
-            properties:
-              Volumes:
-                type: "array"
-                x-nullable: false
-                description: "List of volumes"
-                items:
-                  $ref: "#/definitions/Volume"
-              Warnings:
-                type: "array"
-                x-nullable: false
-                description: |
-                  Warnings that occurred when fetching the list of volumes.
-                items:
-                  type: "string"
+            $ref: "#/definitions/VolumeListResponse"
         500:
         500:
           description: "Server error"
           description: "Server error"
           schema:
           schema:

+ 20 - 18
docs/api/v1.41.yaml

@@ -2075,6 +2075,25 @@ definitions:
           com.example.some-label: "some-value"
           com.example.some-label: "some-value"
           com.example.some-other-label: "some-other-value"
           com.example.some-other-label: "some-other-value"
 
 
+  VolumeListResponse:
+    type: "object"
+    title: "VolumeListResponse"
+    x-go-name: "VolumeListOKBody"
+    description: "Volume list response"
+    properties:
+      Volumes:
+        type: "array"
+        description: "List of volumes"
+        items:
+          $ref: "#/definitions/Volume"
+      Warnings:
+        type: "array"
+        description: |
+          Warnings that occurred when fetching the list of volumes.
+        items:
+          type: "string"
+        example: []
+
   Network:
   Network:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -9086,24 +9105,7 @@ paths:
         200:
         200:
           description: "Summary volume data that matches the query"
           description: "Summary volume data that matches the query"
           schema:
           schema:
-            type: "object"
-            title: "VolumeListResponse"
-            description: "Volume list response"
-            required: [Volumes, Warnings]
-            properties:
-              Volumes:
-                type: "array"
-                x-nullable: false
-                description: "List of volumes"
-                items:
-                  $ref: "#/definitions/Volume"
-              Warnings:
-                type: "array"
-                x-nullable: false
-                description: |
-                  Warnings that occurred when fetching the list of volumes.
-                items:
-                  type: "string"
+            $ref: "#/definitions/VolumeListResponse"
         500:
         500:
           description: "Server error"
           description: "Server error"
           schema:
           schema: