浏览代码

Adjust swagger definitions

Signed-off-by: Tibor Vass <tibor@docker.com>
Tibor Vass 7 年之前
父节点
当前提交
87ebfa11f6
共有 1 个文件被更改,包括 22 次插入0 次删除
  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: