lmammino / swagger-jsdoc-generator

Command line script that generates a swagger file based on jsdoc comments
https://lmammino.github.io/swagger-jsdoc-generator/
MIT License
21 stars 4 forks source link

compatibility with swagger-jsdoc #4

Open damianobarbati opened 3 years ago

damianobarbati commented 3 years ago

Nice work! Is this attempting to be a drop-in replacement for swagger-jsdoc v6 after they removed the cli?

Old command:

swagger-jsdoc -d openapi.yml -o docs/openapi.json src/*.js src/**/*.js

New command:

swagger-jsdoc-generator openapi.yml -o docs/openapi.json src/*.js src/**/*.js

Results in several syntax error, maybe only json is supported?

openapi: 3.0.3
            ^^

SyntaxError: Unexpected number
lmammino commented 3 years ago

Hello @damianobarbati! Thanks a lot for submitting this issue.

I haven't actively maintaining this project for a while now. Would you have some time to contribute to it? Maybe propose a PR to fix this specific issue?