Browse Source

Adjust swagger definitions

Signed-off-by: Tibor Vass <tibor@docker.com>
Tibor Vass 7 năm trước cách đây
mục cha
commit
87ebfa11f6
1 tập tin đã thay đổi với 22 bổ sung0 xóa
  1. 22 0
      api/swagger.yaml

+ 22 - 0
api/swagger.yaml

@@ -6764,6 +6764,28 @@ paths:
           schema:
             type: "object"
             properties:
+              Platform:
+                type: "object"
+                required: [Name]
+                properties:
+                  Name:
+                    type: "string"
+              Components:
+                type: "array"
+                items:
+                  type: "object"
+                  x-go-name: ComponentVersion
+                  required: [Name, Version]
+                  properties:
+                    Name:
+                      type: "string"
+                    Version:
+                      type: "string"
+                      x-nullable: false
+                    Details:
+                      type: "object"
+                      x-nullable: true
+
               Version:
                 type: "string"
               ApiVersion: