From 4636aec9d4c733f323f59e59e4a11649c039fc00 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 27 May 2025 01:11:10 +0200 Subject: [PATCH] Fix test expectation for unknown type fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed from 'any' to 'string' to match the updated implementation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- tests/unit/utils/zod-to-json-schema.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/utils/zod-to-json-schema.test.ts b/tests/unit/utils/zod-to-json-schema.test.ts index 2c27050..e0ca230 100644 --- a/tests/unit/utils/zod-to-json-schema.test.ts +++ b/tests/unit/utils/zod-to-json-schema.test.ts @@ -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", () => {