zyket 1.0.51 → 1.0.52
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
|
@@ -209,7 +209,8 @@ 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
|
+
openapi: '3.0.0',
|
|
213
214
|
swaggerDefinition: {
|
|
214
215
|
info: {
|
|
215
216
|
title: "API Documentation",
|
|
@@ -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", "**", "*.
|
|
224
|
+
apis: [path.join(process.cwd(), "src", "routes", "**", "*.yml")]
|
|
224
225
|
};
|
|
225
226
|
}
|
|
226
227
|
return swaggerOptions;
|