MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / validateSheetWriteValuesEnv

Function validateSheetWriteValuesEnv

scripts/feishu/smoke.ts:1582–1592  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1580}
1581
1582function validateSheetWriteValuesEnv(value: string): string | undefined {
1583 try {
1584 const parsed = JSON.parse(value) as unknown;
1585 if (!Array.isArray(parsed) || !parsed.every((row) => Array.isArray(row))) {
1586 return "must_be_json_array_of_rows";
1587 }
1588 return undefined;
1589 } catch {
1590 return "must_be_valid_json";
1591 }
1592}
1593
1594function validateDocAppendBlocksEnv(value: string): string | undefined {
1595 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected