From 5a12bf33f38eb235647b0dd396d6fb8cf75b96ef Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Wed, 19 Mar 2025 07:00:25 +1100 Subject: [PATCH] Add graph ID and revision to schema (#3096) --- src/schemas/comfyWorkflowSchema.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/schemas/comfyWorkflowSchema.ts b/src/schemas/comfyWorkflowSchema.ts index 506f4c675..800453b25 100644 --- a/src/schemas/comfyWorkflowSchema.ts +++ b/src/schemas/comfyWorkflowSchema.ts @@ -239,6 +239,8 @@ const zExtra = z /** Schema version 0.4 */ export const zComfyWorkflow = z .object({ + id: z.string().uuid().optional(), + revision: z.number().optional(), last_node_id: zNodeId, last_link_id: z.number(), nodes: z.array(zComfyNode), @@ -255,6 +257,8 @@ export const zComfyWorkflow = z /** Schema version 1 */ export const zComfyWorkflow1 = z .object({ + id: z.string().uuid().optional(), + revision: z.number().optional(), version: z.literal(1), config: zConfig.optional().nullable(), state: zGraphState,