Skip to content

Commit 3bf9711

Browse files
committed
Refactor: move metadata classes to separate files
Separated SpecificationMetadata, PluginOperationMetadata, and PluginOperationParameterMetadata into their own files with proper namespace. Removed their definitions from PluginMetadata.cs for improved code organization and maintainability. #49
1 parent dc12d05 commit 3bf9711

4 files changed

Lines changed: 28 additions & 25 deletions

File tree

src/FlowSynx.Pluginregistry/Models/PluginMetadata.cs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,4 @@ public class PluginMetadata
2121
public string? TargetFlowSynxVersion { get; set; }
2222
public List<SpecificationMetadata> Specifications { get; set; } = new List<SpecificationMetadata>();
2323
public List<PluginOperationMetadata> Operations { get; set; } = new List<PluginOperationMetadata>();
24-
}
25-
26-
public class SpecificationMetadata
27-
{
28-
public string Name { get; set; } = string.Empty;
29-
public string? Description { get; set; }
30-
public string? Type { get; set; }
31-
public string? DefaultValue { get; set; }
32-
public bool? IsRequired { get; set; } = false;
33-
}
34-
35-
public class PluginOperationMetadata
36-
{
37-
public string Name { get; set; } = string.Empty;
38-
public string? Description { get; set; }
39-
public List<PluginOperationParameterMetadata> Parameters { get; set; } = new List<PluginOperationParameterMetadata>();
40-
}
41-
42-
public class PluginOperationParameterMetadata
43-
{
44-
public string Name { get; set; } = string.Empty;
45-
public string? Description { get; set; }
46-
public string? Type { get; set; }
47-
public string? DefaultValue { get; set; }
48-
public bool? IsRequired { get; set; } = false;
4924
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace FlowSynx.Pluginregistry.Models;
2+
3+
public class PluginOperationMetadata
4+
{
5+
public string Name { get; set; } = string.Empty;
6+
public string? Description { get; set; }
7+
public List<PluginOperationParameterMetadata> Parameters { get; set; } = new List<PluginOperationParameterMetadata>();
8+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace FlowSynx.Pluginregistry.Models;
2+
3+
public class PluginOperationParameterMetadata
4+
{
5+
public string Name { get; set; } = string.Empty;
6+
public string? Description { get; set; }
7+
public string? Type { get; set; }
8+
public string? DefaultValue { get; set; }
9+
public bool? IsRequired { get; set; } = false;
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace FlowSynx.Pluginregistry.Models;
2+
3+
public class SpecificationMetadata
4+
{
5+
public string Name { get; set; } = string.Empty;
6+
public string? Description { get; set; }
7+
public string? Type { get; set; }
8+
public string? DefaultValue { get; set; }
9+
public bool? IsRequired { get; set; } = false;
10+
}

0 commit comments

Comments
 (0)