From 181a64a5aa8b6d17e10a51a54241cb767c613846 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 --- api/swagger.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index b02b35f9ff..75a093ff49 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -1141,6 +1141,7 @@ definitions: type: "object" additionalProperties: type: "array" + x-nullable: true items: $ref: "#/definitions/PortBinding" example: @@ -1165,7 +1166,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."