Browse code

Merge pull request #241 from thaJeztah/19.03_swagger_fixes

[19.03 backport] swagger fixes

Sebastiaan van Stijn authored on 2019/05/28 02:54:35
Showing 1 changed files
... ...
@@ -1141,6 +1141,7 @@ definitions:
1141 1141
     type: "object"
1142 1142
     additionalProperties:
1143 1143
       type: "array"
1144
+      x-nullable: true
1144 1145
       items:
1145 1146
         $ref: "#/definitions/PortBinding"
1146 1147
     example:
... ...
@@ -1165,7 +1166,6 @@ definitions:
1165 1165
       PortBinding represents a binding between a host IP address and a host
1166 1166
       port.
1167 1167
     type: "object"
1168
-    x-nullable: true
1169 1168
     properties:
1170 1169
       HostIp:
1171 1170
         description: "Host IP address that the container's port is mapped to."
... ...
@@ -5462,7 +5462,7 @@ paths:
5462 5462
   /containers/{id}/resize:
5463 5463
     post:
5464 5464
       summary: "Resize a container TTY"
5465
-      description: "Resize the TTY for a container. You must restart the container for the resize to take effect."
5465
+      description: "Resize the TTY for a container."
5466 5466
       operationId: "ContainerResize"
5467 5467
       consumes:
5468 5468
         - "application/octet-stream"
... ...
@@ -9106,7 +9106,9 @@ paths:
9106 9106
                 type: "string"
9107 9107
               RemoteAddrs:
9108 9108
                 description: "Addresses of manager nodes already participating in the swarm."
9109
-                type: "string"
9109
+                type: "array"
9110
+                items:
9111
+                  type: "string"
9110 9112
               JoinToken:
9111 9113
                 description: "Secret token for joining this swarm."
9112 9114
                 type: "string"