@kubb/oas 4.12.4 → 4.12.5
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4395,7 +4395,7 @@ async function merge(pathOrApi, { oasClass = Oas } = {}) {
|
|
|
4395
4395
|
}
|
|
4396
4396
|
function parseFromConfig(config, oasClass = Oas) {
|
|
4397
4397
|
if ("data" in config.input) {
|
|
4398
|
-
if (typeof config.input.data === "object") return parse(
|
|
4398
|
+
if (typeof config.input.data === "object") return parse(structuredClone(config.input.data), { oasClass });
|
|
4399
4399
|
try {
|
|
4400
4400
|
return parse(import_yaml.parse(config.input.data), { oasClass });
|
|
4401
4401
|
} catch (_e) {
|