diff --git a/src/platform/workflow/validation/schemas/workflowSchema.ts b/src/platform/workflow/validation/schemas/workflowSchema.ts index 3f10eae53d..cc73a3928b 100644 --- a/src/platform/workflow/validation/schemas/workflowSchema.ts +++ b/src/platform/workflow/validation/schemas/workflowSchema.ts @@ -1,6 +1,9 @@ import { z } from 'zod' import type { SafeParseReturnType } from 'zod' import { fromZodError } from 'zod-validation-error' +import type { RendererType } from '@/lib/litegraph/src/LGraph' + +const zRendererType = z.enum(['LG', 'Vue']) satisfies z.ZodType // GroupNode is hacking node id to be a string, so we need to allow that. // innerNode.id = `${this.node.id}:${i}` @@ -271,7 +274,8 @@ const zExtra = z ds: zDS.optional(), frontendVersion: z.string().optional(), linkExtensions: z.array(zComfyLinkExtension).optional(), - reroutes: z.array(zReroute).optional() + reroutes: z.array(zReroute).optional(), + workflowRendererVersion: zRendererType.optional() }) .passthrough()