@kubb/oas 4.21.2 → 4.22.1
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/utils.ts +1 -2
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import BaseOas from "oas";
|
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { pascalCase } from "@kubb/core/transformers";
|
|
7
7
|
import { URLPath } from "@kubb/core/utils";
|
|
8
|
+
import { bundle, loadConfig } from "@redocly/openapi-core";
|
|
8
9
|
import { isRef } from "oas/types";
|
|
9
10
|
import OASNormalize from "oas-normalize";
|
|
10
11
|
import { isPlainObject, mergeDeep } from "remeda";
|
|
@@ -4390,7 +4391,6 @@ function getDefaultValue(schema) {
|
|
|
4390
4391
|
if (schema.type === "object" || schema.properties) return "{}";
|
|
4391
4392
|
}
|
|
4392
4393
|
async function parse(pathOrApi, { oasClass = Oas, canBundle = true, enablePaths = true } = {}) {
|
|
4393
|
-
const { loadConfig, bundle } = await import("@redocly/openapi-core");
|
|
4394
4394
|
if (typeof pathOrApi === "string" && canBundle) return parse((await bundle({
|
|
4395
4395
|
ref: pathOrApi,
|
|
4396
4396
|
config: await loadConfig(),
|