-
Notifications
You must be signed in to change notification settings - Fork 33
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
feat: auto generate swagger decorators #164
Comments
book1.controller.ts.-.crud.-.Visual.Studio.Code.2024-07-22.23-04-54.mp4 |
@Savio629 the decorators don't seem to have types on them, this won't generate the swagger documentation properly on it's own, without types these decorators don't add much value. |
yes you would have to get them from the function parameter and return types.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Write a parser to read through the controller definitions, look for
@Query()
and@Body()
decorators in function signature and generate corresponding swagger decorators like@ApiQuery()
,@ApiResponse()
and@ApiRequest()
.This should be a CLI command, something like
stencil add swagger
.Ref: #2
The text was updated successfully, but these errors were encountered: