npm swagger-jsdoc 6.0.0-rc.4

latest releases: 6.2.8, 6.2.7, 6.2.6...
3 years ago

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

Don't miss a new swagger-jsdoc release

NewReleases is sending notifications on new releases.