Unable to upload file
openapi: 3.0 and openapi: 3.1.0 :
requestBody:
required: true
content:
application/octet-stream:
schema:
type: string
format: binary
Stoplight:
SwaggerUI
This ticket has been labeled jira. A tracking ticket in Stoplight's Jira (PROVCON-2716) has been created.
Any update on this. Endpoints with file uploads are completely untestable with elements as opposed to swagger.
i'm facing the same issue.
in stoplight:
in swagger:
but i've read at the documentation
there's works well 🤷♂️ confusing right
https://github.com/stoplightio/elements/pull/2737
@lukasikp I think your fix works for application/octet-stream content but it doesn't fix the problem when its multipart/form-data like:
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
image:
type: string
format: binary
title: Image
This is rendered as an upload button in redoc/swagger too: