Render binary request and response bodies (#1579)

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2023-06-20 19:33:06 +02:00 committed by GitHub
parent 4a9bda9bed
commit 564444d43e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 142 additions and 78 deletions

View file

@ -327,6 +327,8 @@ paths:
`M_INVALID_PARAM`."
content:
application/json:
schema:
$ref: ../client-server/definitions/errors/error.yaml
examples:
response:
value: {

View file

@ -39,10 +39,7 @@ paths:
requestBody:
content:
application/octet-stream:
schema:
type: string
example: <bytes>
format: byte
example: <bytes>
description: The content to be uploaded.
required: true
responses:
@ -142,10 +139,7 @@ paths:
requestBody:
content:
application/octet-stream:
schema:
type: string
example: <bytes>
format: byte
example: <bytes>
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: