Browse code

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>

Dominic Tubach authored on 2019/05/23 23:03:48
Showing 1 changed files
... ...
@@ -1154,6 +1154,7 @@ definitions:
1154 1154
     type: "object"
1155 1155
     additionalProperties:
1156 1156
       type: "array"
1157
+      x-nullable: true
1157 1158
       items:
1158 1159
         $ref: "#/definitions/PortBinding"
1159 1160
     example:
... ...
@@ -1178,7 +1179,6 @@ definitions:
1178 1178
       PortBinding represents a binding between a host IP address and a host
1179 1179
       port.
1180 1180
     type: "object"
1181
-    x-nullable: true
1182 1181
     properties:
1183 1182
       HostIp:
1184 1183
         description: "Host IP address that the container's port is mapped to."