From 9b98b65a825d393d2dc0223b78804979272481d3 Mon Sep 17 00:00:00 2001 From: bigcat88 Date: Wed, 7 Jan 2026 12:46:57 +0200 Subject: [PATCH] add support for DynamicCombo --- comfy_api/latest/_io.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/comfy_api/latest/_io.py b/comfy_api/latest/_io.py index 9e0032286..e6a0d1821 100644 --- a/comfy_api/latest/_io.py +++ b/comfy_api/latest/_io.py @@ -1262,7 +1262,13 @@ class PriceBadgeDepends: # Build lookup: widget_id -> io_type input_types: dict[str, str] = {} for inp in schema_inputs: - input_types[inp.id] = inp.get_io_type() + all_inputs = inp.get_all() + input_types[inp.id] = inp.get_io_type() # First input is always the parent itself + for nested_inp in all_inputs[1:]: + # For DynamicCombo/DynamicSlot, nested inputs are prefixed with parent ID + # to match frontend naming convention (e.g., "should_texture.enable_pbr") + prefixed_id = f"{inp.id}.{nested_inp.id}" + input_types[prefixed_id] = nested_inp.get_io_type() # Enrich widgets with type information, raising error for unknown widgets widgets_data: list[dict[str, str]] = []