MCPcopy Create free account
hub / github.com/ding113/claude-code-hub / getOperation

Function getOperation

tests/api/api-openapi-spec.test.ts:74–80  ·  view source on GitHub ↗
(
  openApiDoc: OpenAPIDocument,
  path: string,
  method: string
)

Source from the content-addressed store, hash-verified

72}
73
74function getOperation(
75 openApiDoc: OpenAPIDocument,
76 path: string,
77 method: string
78): OpenApiOperation | undefined {
79 return openApiDoc.paths[path]?.[method];
80}
81
82describe("OpenAPI 规范验证", () => {
83 let openApiDoc: OpenAPIDocument;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected