From 02856b256b61b6a78e6b06490bb6f39510656fb4 Mon Sep 17 00:00:00 2001 From: Dominic Tubach Date: Thu, 23 May 2019 16:03:48 +0200 Subject: [PATCH] API: Move "x-nullable: true" from type PortBinding to type PortMap Currently the API spec would allow `"443/tcp": [null]`, but what should be allowed is `"443/tcp": null` Signed-off-by: Dominic Tubach (cherry picked from commit 32b5d296ea5d392c28affe2854b9d4201166bc27) Signed-off-by: Sebastiaan van Stijn Upstream-commit: 3ee1e060fc9a31844064035cc3e8b76fddb8b341 Component: engine --- components/engine/api/swagger.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/api/swagger.yaml b/components/engine/api/swagger.yaml index 6aeb711e59..f8adfe9feb 100644 --- a/components/engine/api/swagger.yaml +++ b/components/engine/api/swagger.yaml @@ -1082,6 +1082,7 @@ definitions: type: "object" additionalProperties: type: "array" + x-nullable: true items: $ref: "#/definitions/PortBinding" example: @@ -1106,7 +1107,6 @@ definitions: PortBinding represents a binding between a host IP address and a host port. type: "object" - x-nullable: true properties: HostIp: description: "Host IP address that the container's port is mapped to."