Open
Description
There is a chance that there will be some self referencing group going on which is currently not supported but is possible in Zod for example
This leads to callstack size exceeded
export function GroupSchema {
return z.object({
name: z.string(),
subGroup: GroupSchema()
})
}
This does not
export function GroupSchema {
return z.object({
name: z.string(),
subGroup: z.lazy(() => GroupSchema())
})
}
Metadata
Metadata
Assignees
Labels
No labels