From 13e0b2651082878f8f17669df3f97ab252a9e095 Mon Sep 17 00:00:00 2001 From: emanb29 Date: Sun, 29 Apr 2018 21:14:23 -0700 Subject: [PATCH] Describe IP field of Port definition Signed-off-by: Ethan Bell Signed-off-by: Sebastiaan van Stijn --- api/swagger.yaml | 1 + api/types/port.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 2124a816b1..cf7043d336 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -155,6 +155,7 @@ definitions: IP: type: "string" format: "ip-address" + description: "Host IP address that the container's port is mapped to" PrivatePort: type: "integer" format: "uint16" diff --git a/api/types/port.go b/api/types/port.go index ad52d46d56..d91234744c 100644 --- a/api/types/port.go +++ b/api/types/port.go @@ -7,7 +7,7 @@ package types // swagger:model Port type Port struct { - // IP + // Host IP address that the container's port is mapped to IP string `json:"IP,omitempty"` // Port on the container