forked from FoundKeyGang/FoundKey
fixup: use structuredClone
This commit is contained in:
parent
94182876c6
commit
af80492c16
|
@ -210,7 +210,7 @@ export function genOpenapiSpec() {
|
|||
|
||||
if (endpoint.meta.v2) {
|
||||
// we need a clone of the API endpoint info because otherwise we change it by reference
|
||||
const infoClone = JSON.parse(JSON.stringify(info));
|
||||
const infoClone = structuredClone(info);
|
||||
const route = `/v2/${endpoint.meta.v2.alias ?? endpoint.name.replace(/-/g, '_')}`;
|
||||
|
||||
infoClone['operationId'] = infoClone['summary'] = route;
|
||||
|
|
Loading…
Reference in a new issue