File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/platform/workflow/validation/schemas Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11import { z } from 'zod'
22import type { SafeParseReturnType } from 'zod'
33import { fromZodError } from 'zod-validation-error'
4+ import type { RendererType } from '@/lib/litegraph/src/LGraph'
5+
6+ const zRendererType = z . enum ( [ 'LG' , 'Vue' ] ) satisfies z . ZodType < RendererType >
47
58// GroupNode is hacking node id to be a string, so we need to allow that.
69// innerNode.id = `${this.node.id}:${i}`
@@ -272,7 +275,7 @@ const zExtra = z
272275 frontendVersion : z . string ( ) . optional ( ) ,
273276 linkExtensions : z . array ( zComfyLinkExtension ) . optional ( ) ,
274277 reroutes : z . array ( zReroute ) . optional ( ) ,
275- workflowRendererVersion : z . enum ( [ 'LG' , 'Vue' ] ) . optional ( )
278+ workflowRendererVersion : zRendererType . optional ( )
276279 } )
277280 . passthrough ( )
278281
You can’t perform that action at this time.
0 commit comments