From 3ef7b79d9314e4f8986961de83e12a9b0ca3d349 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Tue, 5 Dec 2017 17:20:41 -0500 Subject: [PATCH] Fix codegen problems in swagger spec Code generation does't support multiple types Signed-off-by: Daniel Nephin Upstream-commit: 3648d883556e59392e3e5a05ef5de1b56b68c6fc Component: engine --- components/engine/api/swagger.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/components/engine/api/swagger.yaml b/components/engine/api/swagger.yaml index 96386e0599..406b72a29b 100644 --- a/components/engine/api/swagger.yaml +++ b/components/engine/api/swagger.yaml @@ -254,6 +254,7 @@ definitions: properties: Propagation: description: "A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`." + type: "string" enum: - "private" - "rprivate" @@ -823,9 +824,7 @@ definitions: type: "string" Cmd: description: "Command to run specified as a string or an array of strings." - type: - - "array" - - "string" + type: "array" items: type: "string" Healthcheck: @@ -853,9 +852,7 @@ definitions: The entry point for the container as a string or an array of strings. 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`). - type: - - "array" - - "string" + type: "array" items: type: "string" NetworkDisabled: