feat: add workflowRendererVersion workflow schema (#7086)

## 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)
This commit is contained in:
Simula_r
2025-12-02 18:28:48 -08:00
committed by GitHub
parent c7eac496c1
commit 9c5f8a619c

View File

@@ -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<RendererType>
// 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()