We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So, not sure if I'm doing something incorrectly, but here, I use this code:
@Path('/test') @POST async test() { throw new Errors.NotFoundError('Not Found'); }
Then I generate swagger. But the error response does not appear in generated swagger. Am I missing something?
The text was updated successfully, but these errors were encountered:
I use typescript-rest-swagger to generate swagger based on my code and to show response in your swagger, you need to use the @response decorator.
@Response<{ Your Response value }>(statusCode, message)
Try searching for the typescript-rest-swagger module.
Sorry, something went wrong.
No branches or pull requests
So, not sure if I'm doing something incorrectly, but here, I use this code:
Then I generate swagger. But the error response does not appear in generated swagger.
Am I missing something?
The text was updated successfully, but these errors were encountered: