-
Notifications
You must be signed in to change notification settings - Fork 488
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
feature: define api response description globally #884
Comments
Would you like to create a PR for this issue? |
I can give it a try. Do you have any pointers in regard to how to work it in the current implementation? |
@razvanz just off top of my head. What you want to do, at the end of the day, is to generate a correct
|
Enables defining global responses which are inherited by all server routes. fixes nestjs#884
Let's track this here #933 |
Enables defining global responses which are inherited by all server routes. fixes nestjs#884
Enables defining global responses which are inherited by all server routes. fixes nestjs#884
@kamilmysliwiec |
I'm submitting a...
Current behavior
Currently, there's no way of configuring exception responses globaly.
Expected behavior
It would be great to be able to define response documentation globally. Maybe in the same way auth is added:
Minimal reproduction of the problem with instructions
N/A
What is the motivation / use case for changing the behavior?
Having the ability to define exception responses globally would remove a good amount of redundant code that now needs to be defined on every controller.
Environment
The text was updated successfully, but these errors were encountered: