From 9c5f8a619c7b153463cf3c426d0de67127ffaf4f Mon Sep 17 00:00:00 2001 From: Simula_r <18093452+simula-r@users.noreply.github.com> Date: Tue, 2 Dec 2025 18:28:48 -0800 Subject: [PATCH] feat: add workflowRendererVersion workflow schema (#7086) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary add workflowRendererVersion to workflow schema extra ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7086-feat-add-workflowRendererVersion-workflow-schema-2bd6d73d3650818dbcecf2b85b0553a2) by [Unito](https://www.unito.io) --- src/platform/workflow/validation/schemas/workflowSchema.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()