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.
Files changed (2) hide show
  1. package/dist/cli.cjs +5 -7
  2. 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 validating spec from ${specUrl}...`));
345
- const initialSpec = await import_swagger_parser.default.validate(specUrl, {
346
- dereference: { circular: "ignore" }
347
- });
348
- console.log(import_chalk.default.green("\u2713 Spec fetched and validated successfully."));
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-core-lib",
3
- "version": "12.0.63",
3
+ "version": "12.0.64",
4
4
  "description": "A flexible and powerful API client library for modern web applications.",
5
5
  "type": "module",
6
6
  "exports": {