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

Doesn't show file select option on swagger 3.0.0 version #800

Open
2 tasks done
11laflame opened this issue May 16, 2024 · 2 comments
Open
2 tasks done

Doesn't show file select option on swagger 3.0.0 version #800

11laflame opened this issue May 16, 2024 · 2 comments

Comments

@11laflame
Copy link

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

4.23.2

Plugin version

8.14.0

Node.js version

20.13.1

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

Ubuntu 22.04.3 LTS

Description

Fastify-swagger & fastify-multipart setup with request.file() logic in validation

Doesn't see on UI select file option, on swagger 2.0.0 version it suggests to send binary, which is not ux oriented
When I set body instead of requestBody in schema, UI is present but generates bad request response

image

Link to code that reproduces the bug

https://github.com/11laflame/swagger-ui-bug

Expected Behavior

UI should be presented and works good with fastify-multipart

@mcollina
Copy link
Member

Would you like to send a PR to implement this?

@11laflame
Copy link
Author

Currently have no time, but maybe will take a look soon what we can do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants