diff --git a/invokeai/frontend/web/src/features/nodes/types/types.ts b/invokeai/frontend/web/src/features/nodes/types/types.ts index fc8fe10ccc..22e5d78634 100644 --- a/invokeai/frontend/web/src/features/nodes/types/types.ts +++ b/invokeai/frontend/web/src/features/nodes/types/types.ts @@ -1210,20 +1210,22 @@ export const zParsedSemver = zSemVer.transform((val) => { export type SemVer = z.infer; -export const zInvocationNodeData = z.object({ - id: z.string().trim().min(1), - // no easy way to build this dynamically, and we don't want to anyways, because this will be used - // to validate incoming workflows, and we want to allow community nodes. - type: z.string().trim().min(1), - inputs: z.record(zInputFieldValue), - outputs: z.record(zOutputFieldValue), - label: z.string(), - isOpen: z.boolean(), - notes: z.string(), - embedWorkflow: z.boolean(), - isIntermediate: z.boolean(), - version: zSemVer.optional(), -}); +export const zInvocationNodeData = z + .object({ + id: z.string().trim().min(1), + // no easy way to build this dynamically, and we don't want to anyways, because this will be used + // to validate incoming workflows, and we want to allow community nodes. + type: z.string().trim().min(1), + inputs: z.record(zInputFieldValue), + outputs: z.record(zOutputFieldValue), + label: z.string(), + isOpen: z.boolean(), + notes: z.string(), + embedWorkflow: z.boolean(), + isIntermediate: z.boolean(), + version: zSemVer.optional(), + }) + .passthrough(); export const zInvocationNodeDataV2 = z.preprocess( (arg) => {