vls-openapi-generator 1.12.0 → 1.13.0

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.
@@ -80,6 +80,9 @@ const generateOpenAPI = async () => {
80
80
  continue;
81
81
  }
82
82
  const { bodySchema, queryParametersSchema, eventResponseParametersSchema, eventResponseModulesSchema, OPENAPI_CONFIG: openAPIConfig } = (await Promise.resolve(`${path.join(SCHEMAS_DIR, fileName + '.js')}`).then(s => __importStar(require(s))).catch(() => ({})));
83
+ if (!openAPIConfig) {
84
+ throw new Error(`${fileName} handler schema not found.`);
85
+ }
83
86
  if (openAPIConfig.isDocumentationNeeded === false) {
84
87
  continue;
85
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vls-openapi-generator",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -77,6 +77,10 @@ export const generateOpenAPI = async (): Promise<void> => {
77
77
  OPENAPI_CONFIG: OpenAPIConfig;
78
78
  };
79
79
 
80
+ if (!openAPIConfig) {
81
+ throw new Error(`${fileName} handler schema not found.`);
82
+ }
83
+
80
84
  if (openAPIConfig.isDocumentationNeeded === false) {
81
85
  continue;
82
86
  }