Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to upload file #2615

Closed
arno-fukuda opened this issue Jul 23, 2024 · 5 comments
Closed

Unable to upload file #2615

arno-fukuda opened this issue Jul 23, 2024 · 5 comments
Labels
jira p/high t/bug Something isn't working triaged

Comments

@arno-fukuda
Copy link

openapi: 3.0 and openapi: 3.1.0 :

      requestBody:
        required: true
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary

Stoplight:
Screenshot 2024-07-23 at 15 06 00

SwaggerUI
Screenshot 2024-07-23 at 15 09 24

@mnaumanali94 mnaumanali94 added p/high t/bug Something isn't working triaged jira labels Aug 1, 2024
Copy link

github-actions bot commented Aug 1, 2024

This ticket has been labeled jira. A tracking ticket in Stoplight's Jira (PROVCON-2716) has been created.

@mdgilene
Copy link

Any update on this. Endpoints with file uploads are completely untestable with elements as opposed to swagger.

@kuuruni
Copy link

kuuruni commented Nov 6, 2024

i'm facing the same issue.
in stoplight:
image
in swagger:
image
but i've read at the documentation
there's works well 🤷‍♂️ confusing right
image

@lukasikp
Copy link
Contributor

#2737

@MarcSalvat
Copy link

MarcSalvat commented Nov 29, 2024

@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:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira p/high t/bug Something isn't working triaged
Projects
None yet
Development

No branches or pull requests

6 participants