@kubb/oas 4.12.4 → 4.12.6
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/package.json
CHANGED
package/src/utils.ts
CHANGED
|
@@ -139,7 +139,7 @@ export async function merge(pathOrApi: Array<string | OASDocument>, { oasClass =
|
|
|
139
139
|
export function parseFromConfig(config: Config, oasClass: typeof Oas = Oas): Promise<Oas> {
|
|
140
140
|
if ('data' in config.input) {
|
|
141
141
|
if (typeof config.input.data === 'object') {
|
|
142
|
-
const api: OasTypes.OASDocument =
|
|
142
|
+
const api: OasTypes.OASDocument = structuredClone(config.input.data) as OasTypes.OASDocument
|
|
143
143
|
return parse(api, { oasClass })
|
|
144
144
|
}
|
|
145
145
|
|