-
Notifications
You must be signed in to change notification settings - Fork 455
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
auto generate description from comments #585
auto generate description from comments #585
Conversation
8657d1b
to
6355d5e
Compare
@qbcbyb Could I make a suggestion and remove the |
Thanks you for contribution. However, I'm not entirely sure why we should even extract comments to enhance the specification. These are 2 completely separate areas. I would recommend publishing this a separate plugin (separate NPM package). |
@kamilmysliwiec it would have been good to have a discussion around this instead of straight up closing it. right now in my project, we have to duplicate the comment for both swagger and JS docs, whereas, this PR would have only required one. the whole point of the swagger plugin you created was to limit the code duplication |
As I've pointed out above, you can always publish a separate plugin - CLI allows applying multiple plugins at once. |
Your plugin misses the mark when you have to still use |
@BenWildeman, Have removed the |
@kamilmysliwiec is this PR lined up to be merged in soon? |
6355d5e
to
47d394c
Compare
e3d8b82
to
a2a6721
Compare
Thanks for your contribution! |
PR Checklist
Please check if your PR fulfills the following requirements:
test added.
no docs in this project yet.
PR Type
What kind of change does this PR introduce?
What is the current behavior?
When enable the plugin by modified nest-cli.json , there is no default
description
andexample
inApiProperty
andApiOperation
What is the new behavior?
Auto generate
description
and (example
orexamples
) from comment, just like this:=>
Does this PR introduce a breaking change?
Other information