From be04ab6b58957f2c7454a2c288436443b6da6718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Mon, 19 Jun 2023 15:44:12 +0200 Subject: [PATCH] Simplify media repo definitions according to OpenAPI 3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The schema is not necessary for binary data. Signed-off-by: Kévin Commaille --- data/api/client-server/content-repo.yaml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/data/api/client-server/content-repo.yaml b/data/api/client-server/content-repo.yaml index 7792b2a9..c8800279 100644 --- a/data/api/client-server/content-repo.yaml +++ b/data/api/client-server/content-repo.yaml @@ -39,10 +39,7 @@ paths: requestBody: content: application/octet-stream: - schema: - type: string - example: - format: byte + example: description: The content to be uploaded. required: true responses: @@ -142,10 +139,7 @@ paths: requestBody: content: application/octet-stream: - schema: - type: string - example: - format: byte + example: description: The content to be uploaded. required: true responses: @@ -361,10 +355,8 @@ paths: content: application/octet-stream: schema: - type: string # This is a workaround for us not being able to say the response is required. description: "**Required.** The bytes for the uploaded file." - format: binary "307": description: A redirect to the thumbnail of the requested content. headers: @@ -500,10 +492,8 @@ paths: content: application/octet-stream: schema: - type: string # This is a workaround for us not being able to say the response is required. description: "**Required.** The bytes for the uploaded file." - format: binary "307": description: A redirect to the thumbnail of the requested content. headers: @@ -657,15 +647,11 @@ paths: content: image/jpeg: schema: - type: string # This is a workaround for us not being able to say the response is required. description: "**Required.** The bytes for the thumbnail." - format: binary image/png: schema: - type: string description: "**Required.** The bytes for the thumbnail." - format: binary "307": description: A redirect to the thumbnail of the requested content. headers: