6.0.0-rc.4
kalinchernev
released this
12 Dec 17:30
·
112 commits
to master
since this release
This change affects only the CLI and can be a breaking one if you pass apis
information through the swaggerDefinition/openAPIObject. The change no longer reads apis
property from that object, as it's not part of the OpenAPI specification.
See the pull request for more details #234
Example swaggerDefinition.js
:
{
"info": {
"title": "Hello World",
"version": "1.0.0",
"description": "A sample API"
},
- "apis": ["./**/*/routes.js"]
}
Pass this information as input files parameter:
swagger-jsdoc -d swaggerDefinition.js ./**/*/routes.js