From 9e29d2ea49aaee9cd92fa3fe026ff5f8ab1f8a25 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 14 Dec 2017 11:28:16 +0100 Subject: [PATCH 1/3] =?UTF-8?q?BuildInfo=20uses=20=E2=80=98aux=E2=80=99=20?= =?UTF-8?q?to=20document=20image=20ID=20after=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicolas De Loof --- api/swagger.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index 73ea1a378c..bec8b74bf3 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -1496,6 +1496,17 @@ definitions: type: "string" progressDetail: $ref: "#/definitions/ProgressDetail" + aux: + $ref: "#/definitions/ImageID" + + ImageID: + type: "object" + description: "Image ID or Digest" + properties: + ID: + type: "string" + example: + ID: "sha256:85f05633ddc1c50679be2b16a0479ab6f7637f8884e0cfe0f4d20e1ebb3d6e7c" CreateImageInfo: type: "object" From cfa07bffb5e27763fa4bb189133dadd179e4bd23 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 14 Dec 2017 11:29:18 +0100 Subject: [PATCH 2/3] =?UTF-8?q?CreateImage=20uses=20=E2=80=98id=E2=80=99?= =?UTF-8?q?=20to=20track=20layers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicolas De Loof --- api/swagger.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index bec8b74bf3..294939a2e4 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -1511,6 +1511,8 @@ definitions: CreateImageInfo: type: "object" properties: + id: + type: "string" error: type: "string" status: From 5e63edfa935e4f87e588d358d7060227745de288 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 14 Dec 2017 11:29:48 +0100 Subject: [PATCH 3/3] fix attribute names on ProgressDetail Signed-off-by: Nicolas De Loof --- api/swagger.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 294939a2e4..8c741182ca 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -1545,9 +1545,9 @@ definitions: ProgressDetail: type: "object" properties: - code: + current: type: "integer" - message: + total: type: "integer" ErrorResponse: