MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / hasOperation

Function hasOperation

packages/plugins/google/src/sdk/discovery.ts:939–945  ·  view source on GitHub ↗
(
  paths: Record<string, Record<string, OpenApiOperationObject>>,
  operationId: string,
)

Source from the content-addressed store, hash-verified

937});
938
939const hasOperation = (
940 paths: Record<string, Record<string, OpenApiOperationObject>>,
941 operationId: string,
942): boolean =>
943 Object.values(paths).some((pathItem) =>
944 Object.values(pathItem).some((operation) => operation.operationId === operationId),
945 );
946
947export const convertGoogleDiscoveryToOpenApi = Effect.fn("OpenApi.convertGoogleDiscovery")(
948 function* (input: { readonly discoveryUrl: string; readonly documentText: string }) {

Callers 1

discovery.tsFile · 0.85

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected