-
Notifications
You must be signed in to change notification settings - Fork 483
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
Labels
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
|
razvanz
added a commit
to razvanz/swagger
that referenced
this issue
Aug 26, 2020
Enables defining global responses which are inherited by all server routes. fixes nestjs#884
3 tasks
Let's track this here #933 |
razvanz
added a commit
to razvanz/swagger
that referenced
this issue
Nov 24, 2020
Enables defining global responses which are inherited by all server routes. fixes nestjs#884
cooperate
pushed a commit
to cooperate/swagger
that referenced
this issue
Apr 5, 2021
Enables defining global responses which are inherited by all server routes. fixes nestjs#884
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: