ng-openapi 0.0.38-pr-7-feature-yaml-support.0 → 0.0.39
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/cli.cjs +2 -4
- package/index.js +0 -1
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -2039,7 +2039,6 @@ var ServiceGenerator = class {
|
|
|
2039
2039
|
Object.entries(controllerGroups).forEach(([controllerName, operations]) => {
|
|
2040
2040
|
this.generateServiceFile(controllerName, operations, outputDir);
|
|
2041
2041
|
});
|
|
2042
|
-
console.log(`Generated ${Object.keys(controllerGroups).length} service(s) from ${paths.length} path(s)`);
|
|
2043
2042
|
}
|
|
2044
2043
|
extractPaths() {
|
|
2045
2044
|
const paths = [];
|
|
@@ -2398,7 +2397,7 @@ async function generateFromConfig(config) {
|
|
|
2398
2397
|
__name(generateFromConfig, "generateFromConfig");
|
|
2399
2398
|
|
|
2400
2399
|
// package.json
|
|
2401
|
-
var version = "0.0.
|
|
2400
|
+
var version = "0.0.38";
|
|
2402
2401
|
|
|
2403
2402
|
// src/lib/cli.ts
|
|
2404
2403
|
var program = new import_commander.Command();
|
|
@@ -2434,8 +2433,7 @@ function validateInputFile(inputPath) {
|
|
|
2434
2433
|
".yml"
|
|
2435
2434
|
];
|
|
2436
2435
|
if (!supportedExtensions.includes(extension)) {
|
|
2437
|
-
|
|
2438
|
-
console.warn("The parser will attempt to auto-detect the format.");
|
|
2436
|
+
throw new Error(`Failed to parse ${extension || "specification"}. Supported formats are .json, .yaml, and .yml.`);
|
|
2439
2437
|
}
|
|
2440
2438
|
}
|
|
2441
2439
|
__name(validateInputFile, "validateInputFile");
|
package/index.js
CHANGED
|
@@ -2090,7 +2090,6 @@ var _ServiceGenerator = class _ServiceGenerator {
|
|
|
2090
2090
|
Object.entries(controllerGroups).forEach(([controllerName, operations]) => {
|
|
2091
2091
|
this.generateServiceFile(controllerName, operations, outputDir);
|
|
2092
2092
|
});
|
|
2093
|
-
console.log(`Generated ${Object.keys(controllerGroups).length} service(s) from ${paths.length} path(s)`);
|
|
2094
2093
|
}
|
|
2095
2094
|
extractPaths() {
|
|
2096
2095
|
const paths = [];
|