MCPcopy Index your code
hub / github.com/github/copilot-sdk / getMethodParamsSchema

Function getMethodParamsSchema

scripts/codegen/typescript.ts:421–428  ·  view source on GitHub ↗
(method: RpcMethod)

Source from the content-addressed store, hash-verified

419}
420
421function getMethodParamsSchema(method: RpcMethod): JSONSchema7 | undefined {
422 return (
423 resolveObjectSchema(method.params, rpcDefinitions) ??
424 resolveSchema(method.params, rpcDefinitions) ??
425 method.params ??
426 undefined
427 );
428}
429
430/** True when the raw params schema uses `anyOf: [{ not: {} }, …]` — Zod's pattern for `.optional()`. */
431function isParamsOptional(method: RpcMethod): boolean {

Callers 5

paramsTypeNameFunction · 0.70
generateRpcFunction · 0.70
emitGroupFunction · 0.70

Calls 2

resolveObjectSchemaFunction · 0.85
resolveSchemaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…