api-core-lib 12.0.63 → 12.0.64
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/dist/cli.cjs +5 -7
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -341,13 +341,11 @@ async function runGenerator(options) {
|
|
|
341
341
|
console.log(import_chalk.default.blue("\u2713 Step 1: Environment variables loaded."));
|
|
342
342
|
try {
|
|
343
343
|
console.log(import_chalk.default.blue(`
|
|
344
|
-
\u23F3 Step 2: Fetching and
|
|
345
|
-
const
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
console.log(import_chalk.default.blue("\n\u23F3 Step 3: Preprocessing spec to normalize inline schemas..."));
|
|
350
|
-
const normalizedSpec = preprocessSpec(initialSpec);
|
|
344
|
+
\u23F3 Step 2: Fetching, validating, and bundling spec from ${specUrl}...`));
|
|
345
|
+
const bundledSpec = await import_swagger_parser.default.bundle(specUrl);
|
|
346
|
+
console.log(import_chalk.default.green("\u2713 Spec fetched and fully bundled successfully."));
|
|
347
|
+
console.log(import_chalk.default.blue("\n\u23F3 Step 3: Preprocessing spec to normalize any remaining inline schemas..."));
|
|
348
|
+
const normalizedSpec = preprocessSpec(bundledSpec);
|
|
351
349
|
console.log(import_chalk.default.green("\u2713 Spec has been normalized successfully."));
|
|
352
350
|
console.log(import_chalk.default.blue("\n\u23F3 Step 4: Parsing spec and generating API modules structure..."));
|
|
353
351
|
const modules = parseSpecToModules(normalizedSpec);
|