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 #970

Closed
alfirin opened this issue Aug 14, 2018 · 2 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 !

@kamilmysliwiec
Copy link
Member

Duplicate of nestjs/swagger#122

@lock
Copy link

lock bot commented Sep 24, 2019

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 Sep 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants