zyket 1.0.51 → 1.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zyket",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -209,8 +209,9 @@ module.exports = class Express extends Service {
209
209
  this.#container.get('logger').info("No Swagger configuration found. Creating default config/swagger.js");
210
210
  fs.mkdirSync(path.join(process.cwd(), "config"), { recursive: true });
211
211
  this.#container.get('template-manager').installFile('default/config/swagger', swaggerConfigPath);
212
- swaggerOptions = {
212
+ swaggerOptions = {
213
213
  swaggerDefinition: {
214
+ openapi: '3.0.0',
214
215
  info: {
215
216
  title: "API Documentation",
216
217
  version: require(path.join(process.cwd(), "package.json")).version || "1.0.0",
@@ -220,7 +221,7 @@ module.exports = class Express extends Service {
220
221
  { url: `http://localhost:3000` }
221
222
  ],
222
223
  },
223
- apis: [path.join(process.cwd(), "src", "routes", "**", "*.js")]
224
+ apis: [path.join(process.cwd(), "src", "routes", "**", "*.yml")]
224
225
  };
225
226
  }
226
227
  return swaggerOptions;
@@ -2,6 +2,7 @@ const path = require("path");
2
2
 
3
3
  module.exports = {
4
4
  swaggerDefinition: {
5
+ openapi: '3.0.0',
5
6
  info: {
6
7
  title: "API Documentation",
7
8
  version: require(path.join(process.cwd(), "package.json")).version || "1.0.0",