Make match type receive_type pass validation

This commit is contained in:
Jedrzej Kosinski 2025-11-04 19:41:14 -08:00
parent 53c4aab268
commit bd78daa9a7

View File

@ -1,4 +1,5 @@
from __future__ import annotations
from comfy_api.latest import IO
def validate_node_input(
@ -23,6 +24,11 @@ def validate_node_input(
if not received_type != input_type:
return True
# If the received type is a MatchType, we can return immediately;
# validation for this is handled by the frontend
if received_type == IO.MatchType.io_type:
return True
# If input_type is a Combo, frontend permits a Combo output to be connected,
# but it is defined as a tuple of values with V3 schema.
# This probably should be dealt with sending one thing to the frontend and another to the backend,