Skip to content

Commit 784951d

Browse files
snowe2010FalkWolsky
authored and
FalkWolsky
committed
Optimize the runOpenApi plugin
allow passing in an already dereferenced OpenAPI Document for plugins that have large openapi specs like github. This takes the runtime for Github from over 10s to ~1s on an M1 Max. Adjust the github plugin to use this new capability by dereferencing on plugin initialization, passing the derefed document to the runOpenApi function.
1 parent 3bf3ebf commit 784951d

File tree

1 file changed

+0
-1
lines changed
  • server/node-service/src/plugins/openApi

1 file changed

+0
-1
lines changed

server/node-service/src/plugins/openApi/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ export async function runOpenApi(
9999
id: "",
100100
}]
101101
}
102-
103102
const { actionName, ...otherActionData } = actionData;
104103
const { serverURL } = dataSourceConfig;
105104

0 commit comments

Comments
 (0)