mirror of
https://github.com/morluto/rea
synced 2026-10-28 06:46:47 -04:00
4007b20fc2
Replace empty tuples with a shared empty-array schema. Validate all input and output schemas against Draft 2020-12 during catalog generation and packaged MCP verification, with runtime and catalog regression coverage. Closes #528 Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
5 lines
158 B
TypeScript
5 lines
158 B
TypeScript
import { z } from "zod";
|
|
|
|
/** An empty array whose JSON Schema is valid under Draft 2020-12. */
|
|
export const emptyArraySchema = z.array(z.never()).length(0);
|