@kubb/oas 4.21.2 → 4.22.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.
- 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.cjs
CHANGED
|
@@ -54,6 +54,7 @@ let node_path = require("node:path");
|
|
|
54
54
|
node_path = __toESM(node_path);
|
|
55
55
|
let _kubb_core_transformers = require("@kubb/core/transformers");
|
|
56
56
|
let _kubb_core_utils = require("@kubb/core/utils");
|
|
57
|
+
let _redocly_openapi_core = require("@redocly/openapi-core");
|
|
57
58
|
let oas_types = require("oas/types");
|
|
58
59
|
let oas_normalize = require("oas-normalize");
|
|
59
60
|
oas_normalize = __toESM(oas_normalize);
|
|
@@ -4441,10 +4442,9 @@ function getDefaultValue(schema) {
|
|
|
4441
4442
|
if (schema.type === "object" || schema.properties) return "{}";
|
|
4442
4443
|
}
|
|
4443
4444
|
async function parse(pathOrApi, { oasClass = Oas, canBundle = true, enablePaths = true } = {}) {
|
|
4444
|
-
|
|
4445
|
-
if (typeof pathOrApi === "string" && canBundle) return parse((await bundle({
|
|
4445
|
+
if (typeof pathOrApi === "string" && canBundle) return parse((await (0, _redocly_openapi_core.bundle)({
|
|
4446
4446
|
ref: pathOrApi,
|
|
4447
|
-
config: await loadConfig(),
|
|
4447
|
+
config: await (0, _redocly_openapi_core.loadConfig)(),
|
|
4448
4448
|
base: pathOrApi
|
|
4449
4449
|
})).bundle.parsed, {
|
|
4450
4450
|
oasClass,
|