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

The UploadedFile and FileInterceptor doesn't work with Swagger documentation #122

Closed
alfirin opened this issue Aug 14, 2018 · 4 comments
Closed

Comments

@alfirin
Copy link

alfirin commented Aug 14, 2018

As mentioned here the UploadedFile and FileInterceptor should be documented via Swagger directly.

However it's not the case.

This is my controller:

@Post()
    @UseInterceptors(FileInterceptor('filename'))
    async upload(@UploadedFile() file) {
        console.log(file)
    }

Swagger is working fine for the others routes, but this is how its displayed

image

What I expected is something like that supported natively by swagger.

Thanks a lot guys !

@nartc
Copy link
Contributor

nartc commented Aug 14, 2018

follow #87 for progress on this

@kamilmysliwiec
Copy link
Member

We track this issue here: #87 and #32

@kamilmysliwiec
Copy link
Member

And duplicate of #1

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants