mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-19 22:34:15 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user