You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: post-process typeof expressions to use proper literals
ts-to-zod generates z.any() for `typeof CONST` expressions because it
can't evaluate the constant values. Add post-processing to fix:
- `jsonrpc: z.any()` → `jsonrpc: z.literal("2.0")` (JSONRPC_VERSION)
This makes generated schemas equivalent to manual types.ts for JSON-RPC
request/response validation.
Also update comparison tests to verify JSONRPCRequestSchema,
InitializeRequestSchema, and CallToolRequestSchema now match.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments