Relax schema on node I/O link (#427)

This commit is contained in:
Chenlei Hu
2024-08-14 14:17:18 -04:00
committed by GitHub
parent fc1b0b3e53
commit d8ee0b4584

View File

@@ -42,7 +42,7 @@ const zNodeOutput = z
.object({ .object({
name: z.string(), name: z.string(),
type: zDataType, type: zDataType,
links: z.array(z.number()).nullable(), links: z.array(z.number()).nullable().optional(),
slot_index: zSlotIndex.optional() slot_index: zSlotIndex.optional()
}) })
.passthrough() .passthrough()
@@ -51,7 +51,7 @@ const zNodeInput = z
.object({ .object({
name: z.string(), name: z.string(),
type: zDataType, type: zDataType,
link: z.number().nullable(), link: z.number().nullable().optional(),
slot_index: zSlotIndex.optional() slot_index: zSlotIndex.optional()
}) })
.passthrough() .passthrough()