Skip to content

Commit c1fc444

Browse files
committed
Change MaximumFlowSynxVersion to the TargetFlowSynxVersion and it related description and fix unit tests
#21
1 parent 5212417 commit c1fc444

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

src/PluginMetadata.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,17 @@ public required string CompanyName
115115
/// <summary>
116116
/// The minimum version of the FlowSynx engine this plugin is compatible with.
117117
/// </summary>
118-
public Version? MinimumFlowSynxVersion { get; set; }
118+
public required Version MinimumFlowSynxVersion { get; set; }
119119

120120
/// <summary>
121-
/// The maximum version of the FlowSynx engine this plugin is compatible with.
121+
/// Gets or sets the FlowSynx version that this plugin was developed and tested against.
122122
/// </summary>
123-
public Version? MaximumFlowSynxVersion { get; set; }
123+
/// <remarks>
124+
/// This property indicates the version of the FlowSynx host system that the plugin is known to be compatible with.
125+
/// It is used for forward compatibility checks, allowing the host to warn if the plugin has not been tested
126+
/// against newer host versions.
127+
/// </remarks>
128+
public Version? TargetFlowSynxVersion { get; set; }
124129

125130
/// <summary>
126131
/// Validates that an identifier is non-empty, starts with a letter,

tests/PluginMetadataTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public void TypeProperty_ReturnsCorrectFormat()
1313
Version = new PluginVersion(1, 0, 0),
1414
Category = PluginCategory.Api,
1515
CompanyName = "Test",
16+
MinimumFlowSynxVersion = new Version(1, 0, 0)
1617
};
1718

1819
// Act
@@ -39,7 +40,8 @@ public void Properties_AreAssignedCorrectly()
3940
Authors = new List<string> { "DevTeam" },
4041
ProjectUrl = "https://registry.flowsynx.io/AnalyticsPlugin/",
4142
Category = category,
42-
CompanyName= "Test"
43+
CompanyName= "Test",
44+
MinimumFlowSynxVersion = new Version(1, 0, 0)
4345
};
4446

4547
// Assert
@@ -64,6 +66,7 @@ public void TypeProperty_HandlesDifferentNamespacesAndNames()
6466
Version = new PluginVersion(0, 1, 1),
6567
Category = PluginCategory.AI,
6668
CompanyName = "Test",
69+
MinimumFlowSynxVersion = new Version(1, 0, 0)
6770
};
6871

6972
// Act

tests/PluginTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ public FakePlugin()
101101
Version = new PluginVersion(1, 0, 0),
102102
Category = PluginCategory.Api,
103103
Authors = new List<string> { "Test" },
104-
CompanyName = "Test"
104+
CompanyName = "Test",
105+
MinimumFlowSynxVersion = new Version(1, 0, 0)
105106
};
106107
}
107108

0 commit comments

Comments
 (0)