We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f689cf0 commit 01cfac1Copy full SHA for 01cfac1
1 file changed
src/utils/zod.ts
@@ -50,11 +50,12 @@ export function getUnderlyingTypeName(zodType: ZodType): string {
50
}
51
52
export function zodToStandardSchema(schema: zod.ZodSchema, name: string): Draft07 {
53
- const jsonSchema = zodToJsonSchema(schema, name) as Draft07
+ const jsonSchema = zodToJsonSchema(schema, { name, $refStrategy: 'none' }) as Draft07
54
const jsonSchemaWithEditorMeta = zodToJsonSchema(
55
schema,
56
{
57
name,
58
+ $refStrategy: 'none',
59
override: (def) => {
60
if (def.editor) {
61
return {
0 commit comments