From c40f564201702af429ee5ce09a8c6e1bb3a76bd4 Mon Sep 17 00:00:00 2001 From: Ionite Date: Tue, 24 Oct 2023 18:45:50 -0400 Subject: [PATCH] Fix missing JsonIgnore on TypedNodeBase properties --- .../Models/Api/Comfy/Nodes/ComfyTypedNodeBase.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/StabilityMatrix.Core/Models/Api/Comfy/Nodes/ComfyTypedNodeBase.cs b/StabilityMatrix.Core/Models/Api/Comfy/Nodes/ComfyTypedNodeBase.cs index 1733b7fa..90d6e1df 100644 --- a/StabilityMatrix.Core/Models/Api/Comfy/Nodes/ComfyTypedNodeBase.cs +++ b/StabilityMatrix.Core/Models/Api/Comfy/Nodes/ComfyTypedNodeBase.cs @@ -45,10 +45,9 @@ public abstract record ComfyTypedNodeBase public abstract record ComfyTypedNodeBase : ComfyTypedNodeBase where TOutput : NodeConnectionBase, new() { + [JsonIgnore] public TOutput Output => new() { Data = new object[] { Name, 0 } }; - // public static implicit operator NamedComfyNode(ComfyTypedNodeBase node) => node.ToNamedNode(); - public static implicit operator NamedComfyNode(ComfyTypedNodeBase node) => (NamedComfyNode)node.ToNamedNode(); } @@ -57,12 +56,12 @@ public abstract record ComfyTypedNodeBase : ComfyTypedNodeBa where TOutput1 : NodeConnectionBase, new() where TOutput2 : NodeConnectionBase, new() { + [JsonIgnore] public TOutput1 Output1 => new() { Data = new object[] { Name, 0 } }; + [JsonIgnore] public TOutput1 Output2 => new() { Data = new object[] { Name, 1 } }; - // public static implicit operator NamedComfyNode(ComfyTypedNodeBase node) => node.ToNamedNode(); - public static implicit operator NamedComfyNode( ComfyTypedNodeBase node ) => (NamedComfyNode)node.ToNamedNode();