Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: Workflow JSON Widget Values Format #2

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

RFC: Workflow JSON Widget Values Format #2

wants to merge 6 commits into from

Conversation

huchenlei
Copy link
Member

@huchenlei huchenlei commented Jan 8, 2025

Summary

This RFC proposes a new format for handling widget values in ComfyUI workflows by integrating them directly into the node inputs array instead of storing them in a separate widgets_values array. The new format improves type safety, maintainability, and self-documentation of workflows by making each widget value a named, typed input with explicit metadata. This change will require a version bump in the workflow schema from 1.0 to 2.0, but includes backward compatibility measures to ensure a smooth transition for existing workflows and custom nodes.

Links


Important: Do NOT comment on this PR. Please use the discussion thread linked above to provide feedback, as it provides branched discussions that are easier to follow. This also makes the edit history of the PR clearer.

@yoland68
Copy link
Member

@christian-byrne christian-byrne added the pending When the RFC is still in comments phase label Jan 14, 2025
@huchenlei huchenlei changed the title rfc-02: Workflow JSON Widget Values Format RFC: Workflow JSON Widget Values Format Jan 16, 2025
@ShashwatDubey99
Copy link

Will REST api format change too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending When the RFC is still in comments phase rfc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants