Browse code

Fix codegen problems in swagger spec

Code generation does't support multiple types

Signed-off-by: Daniel Nephin <dnephin@docker.com>

Daniel Nephin authored on 2017/12/06 07:20:41
Showing 1 changed files
... ...
@@ -254,6 +254,7 @@ definitions:
254 254
         properties:
255 255
           Propagation:
256 256
             description: "A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`."
257
+            type: "string"
257 258
             enum:
258 259
               - "private"
259 260
               - "rprivate"
... ...
@@ -823,9 +824,7 @@ definitions:
823 823
           type: "string"
824 824
       Cmd:
825 825
         description: "Command to run specified as a string or an array of strings."
826
-        type:
827
-          - "array"
828
-          - "string"
826
+        type: "array"
829 827
         items:
830 828
           type: "string"
831 829
       Healthcheck:
... ...
@@ -853,9 +852,7 @@ definitions:
853 853
           The entry point for the container as a string or an array of strings.
854 854
 
855 855
           If the array consists of exactly one empty string (`[""]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
856
-        type:
857
-          - "array"
858
-          - "string"
856
+        type: "array"
859 857
         items:
860 858
           type: "string"
861 859
       NetworkDisabled: