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 <dominic.tubach@to.com>
(cherry picked from commit 32b5d296ea)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Dominic Tubach 2019-05-23 16:03:48 +02:00 committed by Sebastiaan van Stijn
parent 63eecadf82
commit 181a64a5aa
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -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."