mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 10:12:11 +00:00
Fix unwarranted workflow validation warning
This commit is contained in:
@@ -354,18 +354,20 @@ export const zComfyWorkflow1 = zBaseExportableGraph
|
|||||||
reroutes: z.array(zReroute).optional(),
|
reroutes: z.array(zReroute).optional(),
|
||||||
extra: zExtra.optional().nullable(),
|
extra: zExtra.optional().nullable(),
|
||||||
models: z.array(zModelFile).optional(),
|
models: z.array(zModelFile).optional(),
|
||||||
definitions: z.object({
|
definitions: z
|
||||||
subgraphs: z.lazy(
|
.object({
|
||||||
(): z.ZodArray<
|
subgraphs: z.lazy(
|
||||||
z.ZodType<
|
(): z.ZodArray<
|
||||||
SubgraphDefinitionBase<ComfyWorkflow1BaseOutput>,
|
z.ZodType<
|
||||||
z.ZodTypeDef,
|
SubgraphDefinitionBase<ComfyWorkflow1BaseOutput>,
|
||||||
SubgraphDefinitionBase<ComfyWorkflow1BaseInput>
|
z.ZodTypeDef,
|
||||||
>,
|
SubgraphDefinitionBase<ComfyWorkflow1BaseInput>
|
||||||
'many'
|
>,
|
||||||
> => z.array(zSubgraphDefinition)
|
'many'
|
||||||
)
|
> => z.array(zSubgraphDefinition)
|
||||||
})
|
)
|
||||||
|
})
|
||||||
|
.optional()
|
||||||
})
|
})
|
||||||
.passthrough()
|
.passthrough()
|
||||||
|
|
||||||
@@ -426,19 +428,21 @@ export const zSubgraphDefinition = zComfyWorkflow1
|
|||||||
/** Ordered list of outputs from the subgraph itself. Similar to a reroute, with the input side in the subgraph, and the output side in the graph. */
|
/** Ordered list of outputs from the subgraph itself. Similar to a reroute, with the input side in the subgraph, and the output side in the graph. */
|
||||||
outputs: z.array(zSubgraphIO).optional(),
|
outputs: z.array(zSubgraphIO).optional(),
|
||||||
/** A list of node widgets displayed in the parent graph, on the subgraph object. */
|
/** A list of node widgets displayed in the parent graph, on the subgraph object. */
|
||||||
widgets: z.array(zExposedWidget),
|
widgets: z.array(zExposedWidget).optional(),
|
||||||
definitions: z.object({
|
definitions: z
|
||||||
subgraphs: z.lazy(
|
.object({
|
||||||
(): z.ZodArray<
|
subgraphs: z.lazy(
|
||||||
z.ZodType<
|
(): z.ZodArray<
|
||||||
SubgraphDefinitionBase<ComfyWorkflow1BaseInput>,
|
z.ZodType<
|
||||||
z.ZodTypeDef,
|
SubgraphDefinitionBase<ComfyWorkflow1BaseInput>,
|
||||||
SubgraphDefinitionBase<ComfyWorkflow1BaseInput>
|
z.ZodTypeDef,
|
||||||
>,
|
SubgraphDefinitionBase<ComfyWorkflow1BaseInput>
|
||||||
'many'
|
>,
|
||||||
> => zSubgraphDefinition.array()
|
'many'
|
||||||
)
|
> => zSubgraphDefinition.array()
|
||||||
})
|
)
|
||||||
|
})
|
||||||
|
.optional()
|
||||||
})
|
})
|
||||||
.passthrough()
|
.passthrough()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user