diff --git a/invokeai/app/invocations/baseinvocation.py b/invokeai/app/invocations/baseinvocation.py index 99f48122cf..d9bdcc988b 100644 --- a/invokeai/app/invocations/baseinvocation.py +++ b/invokeai/app/invocations/baseinvocation.py @@ -464,16 +464,6 @@ class BaseInvocation(ABC, BaseModel): schema["required"] = list() schema["required"].extend(["type", "id"]) - # nodes may have required fields, that can accept input from connections - # mark them as optional in the schema - for field_name, field in model_class.__fields__.items(): - _input = field.field_info.extra.get("input", None) - if _input in [Input.Connection, Input.Any]: - try: - schema["required"].remove(field_name) - except Exception: - pass - @abstractmethod def invoke(self, context: InvocationContext) -> BaseInvocationOutput: """Invoke with provided context and return outputs."""