From 06f6282c3b331f453d7d70c65fa13976ba21af2c Mon Sep 17 00:00:00 2001 From: Allen Sun Date: Thu, 29 Mar 2018 14:36:57 +0800 Subject: [PATCH] fix: make container ID json name compatible Signed-off-by: Allen Sun --- apis/swagger.yml | 3 ++- apis/types/container.go | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apis/swagger.yml b/apis/swagger.yml index 8b1c11afd..e9bdd4025 100644 --- a/apis/swagger.yml +++ b/apis/swagger.yml @@ -2230,7 +2230,8 @@ definitions: GET "/containers/json" type: "object" properties: - ID: + Id: + description: "Container ID" type: "string" Names: type: "array" diff --git a/apis/types/container.go b/apis/types/container.go index c6f259d22..e52e66899 100644 --- a/apis/types/container.go +++ b/apis/types/container.go @@ -34,8 +34,8 @@ type Container struct { // HostConfig *HostConfig `json:"HostConfig,omitempty"` - // ID - ID string `json:"ID,omitempty"` + // Container ID + ID string `json:"Id,omitempty"` // image Image string `json:"Image,omitempty"` @@ -74,7 +74,7 @@ type Container struct { /* polymorph Container HostConfig false */ -/* polymorph Container ID false */ +/* polymorph Container Id false */ /* polymorph Container Image false */