From ff77ce3e2c244b586d59b52bca2deee0fa3fecca Mon Sep 17 00:00:00 2001 From: Pierre Gerbelot Date: Fri, 28 Jul 2023 13:26:44 +0200 Subject: [PATCH] chore: add a warning field in the containerReponse to be able provide info/warning during the creation/clone of a container --- src/schemas/ContainerResponse.yaml | 6 ++++++ src/schemas/ServiceCreationStatus.yaml | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/schemas/ServiceCreationStatus.yaml diff --git a/src/schemas/ContainerResponse.yaml b/src/schemas/ContainerResponse.yaml index f13db28e..d125a39f 100644 --- a/src/schemas/ContainerResponse.yaml +++ b/src/schemas/ContainerResponse.yaml @@ -78,3 +78,9 @@ allOf: If not specified, it takes the value of the `auto_preview` property from the associated environment. ports: $ref: './ServicePortResponseList.yaml' + warnings: + type: array + items: + - $ref: "./ServiceCreationWarning.yaml" + description: | + List of warnings that can occur during the creation/clone of a container. diff --git a/src/schemas/ServiceCreationStatus.yaml b/src/schemas/ServiceCreationStatus.yaml new file mode 100644 index 00000000..4c592d43 --- /dev/null +++ b/src/schemas/ServiceCreationStatus.yaml @@ -0,0 +1,10 @@ +type: object +properties: + type: + type: string + enum: + - ALIAS_VARIABLE_CREATION_FAILED + - OVERRIDE_VARIABLE_CREATION_FAILED + code: + type: string +