(method: RpcMethod)
| 419 | } |
| 420 | |
| 421 | function 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()`. */ |
| 431 | function isParamsOptional(method: RpcMethod): boolean { |
no test coverage detected
searching dependent graphs…