From 520099459fa82713437faad4a7c9446dbe820d37 Mon Sep 17 00:00:00 2001 From: Isaac Way Date: Tue, 25 Apr 2023 17:57:10 -0500 Subject: [PATCH] now uses : 'none' to prevent issues with zodToJsonSchema --- packages/trpc-panel/src/parse/parseProcedure.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/trpc-panel/src/parse/parseProcedure.ts b/packages/trpc-panel/src/parse/parseProcedure.ts index 87748e9..b77c810 100644 --- a/packages/trpc-panel/src/parse/parseProcedure.ts +++ b/packages/trpc-panel/src/parse/parseProcedure.ts @@ -65,7 +65,10 @@ function nodeAndInputSchemaFromInputs( if (!inputs.length) { return { parseInputResult: "success", - schema: zodToJsonSchema(emptyZodObject, { errorMessages: true }), + schema: zodToJsonSchema(emptyZodObject, { + errorMessages: true, + $refStrategy: "none", + }), node: inputParserMap["zod"](emptyZodObject, { path: [], options, @@ -84,7 +87,10 @@ function nodeAndInputSchemaFromInputs( return { parseInputResult: "success", - schema: zodToJsonSchema(input as any, { errorMessages: true }), // + schema: zodToJsonSchema(input as any, { + errorMessages: true, + $refStrategy: "none", + }), // node: zodSelectorFunction((input as any)._def, { path: [], options,