Fix test expectation for unknown type fallback

Changed from 'any' to 'string' to match the updated implementation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Peter Steinberger 2025-05-27 01:11:10 +02:00
parent 4be8c69e77
commit 4636aec9d4

View file

@ -282,7 +282,7 @@ describe("zodToJsonSchema", () => {
test("handles unknown types with fallback", () => {
// Create a custom Zod type that isn't handled
const customSchema = z.any();
expect(zodToJsonSchema(customSchema)).toEqual({ type: "any" });
expect(zodToJsonSchema(customSchema)).toEqual({ type: "string" });
});
test("handles deeply nested structures", () => {