Fixed save load issues in the variable types of nodes
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
Ankitkumar Satapara
2026-04-22 00:48:39 +05:30
parent 9908fd097c
commit f70e21c40e
4 changed files with 70 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ namespace Nodify.Calculator.Models
public int Id { get; set; } = 1;
public List<NodeData> Nodes { get; set; } = new List<NodeData>();
public List<ConnectionData> Connections { get; set; } = new List<ConnectionData>();
public List<FunctionDefinitionData> FunctionDefinitions { get; set; } = new List<FunctionDefinitionData>();
}
public class NodeData
@@ -29,6 +30,8 @@ namespace Nodify.Calculator.Models
// System node properties
public string SystemOp { get; set; } = string.Empty;
public string ClassName { get; set; } = string.Empty;
public bool IsSimpleVariable { get; set; }
public string VariableType { get; set; } = string.Empty;
// Auth node properties
public string AuthBaseUrl { get; set; } = string.Empty;
@@ -74,6 +77,13 @@ namespace Nodify.Calculator.Models
public string Type { get; set; } = string.Empty;
}
public class FunctionDefinitionData
{
public string Name { get; set; } = string.Empty;
public List<FunctionParamData> Inputs { get; set; } = new List<FunctionParamData>();
public List<FunctionParamData> Outputs { get; set; } = new List<FunctionParamData>();
}
// Keep legacy for compatibility
public class SaveNodes
{