-
Notifications
You must be signed in to change notification settings - Fork 474
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
Responses schema from @ApiOperation is not picked up #1420
Comments
Would you like to create a PR for this issue? |
I haven't looked at the source yet!, But happy to contribute if you can point me where to look for the issue? |
Side question, any reason you don't want to use the |
I want to configure multiple response content types. Download could be a PDF or Image or some other document type (document types are limited) |
for example, prefer responses confgured in @ApiOperation instead of what's detected from return type of the controller function fixes: nestjs#1420
for example, responses confgured in @ApiOperation should be given preference over what's detected from return type of the controller function fixes: nestjs#1420
Let's track this here #1454 |
for example, responses confgured in @ApiOperation should be given preference over what's detected from return type of the controller function fixes: nestjs#1420
I'm submitting a...
Current behavior
I want to create responses schema for returning file content.
The schema should be something as described here: https://swagger.io/docs/specification/describing-responses/#response-that-returns-a-file
Instead this gets returned from
-json
endpointExpected behavior
Expect responses to show schema as configured (see below snippet)
Minimal reproduction of the problem with instructions
Source code to replicate the issue:
Environment
The text was updated successfully, but these errors were encountered: