From ce5571f343d89c9338d4dd589b16d7cfd4ff0df0 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 21 Jun 2024 00:30:00 +0200 Subject: [PATCH] api: swagger: fix definition of TmpFsOptions (API v1.46) Since it's a [][]string, there should only be two levels of array in the OpenAPI spec. Also, the outermost level array shouldn't have properties: (it should have items: instead). Co-authored-by: Mark Yen Signed-off-by: Sebastiaan van Stijn --- api/swagger.yaml | 13 +++++-------- docs/api/v1.46.yaml | 13 +++++-------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index d740c9b227..cc754bf1fd 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -449,15 +449,12 @@ definitions: should be provided as as 2-length arrays, where the first item is the key and the second the value. type: "array" - properties: + items: + type: "array" + minItems: 1 + maxItems: 2 items: - type: "array" - items: - type: "array" - minItems: 1 - maxItems: 2 - items: - type: "string" + type: "string" example: [["noexec"]] diff --git a/docs/api/v1.46.yaml b/docs/api/v1.46.yaml index d740c9b227..cc754bf1fd 100644 --- a/docs/api/v1.46.yaml +++ b/docs/api/v1.46.yaml @@ -449,15 +449,12 @@ definitions: should be provided as as 2-length arrays, where the first item is the key and the second the value. type: "array" - properties: + items: + type: "array" + minItems: 1 + maxItems: 2 items: - type: "array" - items: - type: "array" - minItems: 1 - maxItems: 2 - items: - type: "string" + type: "string" example: [["noexec"]]