-
Notifications
You must be signed in to change notification settings - Fork 229
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
Writing jsdoc in YAML is very difficult with comments #21
Comments
What format would you prefer to describe the spec with? I am keen to hear about your opinion on this.
|
I would prefer to use pure JSDoc if possible. Writing yaml in comments is very difficult. I found following module useful in terms of writing the docs however quality of generated swagger.yaml is not good. Still not able to make decision to choose the better approach. |
@dilipkumar2k6 apidoc-swagger is super buggy, quite useless If you look at source code you'll see that the guy hardcoded 200 for every response. |
Hi @dilipkumar2k6, As you said by yourself https://github.com/fsbahman/apidoc-swagger uses another approach in documenting the swagger documentation. I hope you can decide on one or the other package. Regards, |
The way to write the swagger docs as yaml inside jsdoc is really not useful, it's hard to maintain, hard to read etc.... I would prefer to use something like apidoc-swagger, but better, where you also can use normal jsdoc typedefs as return types etc... as otherwise, you end up documenting everything twice now.... |
Since 1.9.0 you can use external files to which are included in your specification. |
master...410063005:swagger-jsdoc:master I modified a little in the fork. It works well without the '*'. A late reply to an old issuse. |
I liked this module however when I tried to use it for my API then it became nightmare as its very difficult to hand code JSDoc in YAML style. Very tough to write valid YAML syntax inside the comments.
Can I used any other comment format?
The text was updated successfully, but these errors were encountered: