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

facing issue while running command- swagger-jsdoc-generator fixtures/expectedSwagger.json #2

Closed amitdhingra closed 4 years ago

amitdhingra commented 4 years ago

I am facing one issue when I have downloaded your sample project. Run command i.e swagger-jsdoc-generator fixtures/expectedSwagger.json Below error I am getting.

Error: 'swaggerDefinition' is required. at module.exports (C:\Users\ei11037\AppData\Roaming\npm\node_modules\swagger-jsdoc-generator\node_modules\swagger-jsdoc\lib\index.js:94:11)

I want to get swagger file in separate json or yaml file.

Please help.

Regards, Amit