Skip to content

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

@11laflame

Description

@11laflame

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions