From 26049febb22fdba9a67e520cc55d07a02927e256 Mon Sep 17 00:00:00 2001 From: Daniel Guns Date: Wed, 9 Oct 2024 20:08:26 -0300 Subject: [PATCH] api: Allow for an empty string for Isolation in Swagger specs This adds an empty string as a valid option for the Isolation field when inspecting a container. On non windows systems, this is always empty, so no error should be returned. Fixes #47452 Signed-off-by: Daniel Guns --- api/swagger.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index 974fbf12e2..fb6445ab9d 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -1195,6 +1195,7 @@ definitions: - "default" - "process" - "hyperv" + - "" MaskedPaths: type: "array" description: | @@ -4185,6 +4186,7 @@ definitions: - "default" - "process" - "hyperv" + - "" Init: description: | Run an init inside the container that forwards signals and reaps @@ -5755,6 +5757,7 @@ definitions: - "default" - "hyperv" - "process" + - "" InitBinary: description: | Name and, optional, path of the `docker-init` binary.