Skip to content

Commit

Permalink
feat(Sdk): Turned the Switch property into a map that guarantees prop…
Browse files Browse the repository at this point in the history
…er ordering

Signed-off-by: Charles d'Avernas <[email protected]>
  • Loading branch information
cdavernas committed Jun 18, 2024
1 parent 46a32e0 commit 5000ea3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

using Neuroglia;

namespace ServerlessWorkflow.Sdk.Builders;

/// <summary>
Expand All @@ -25,7 +23,7 @@ public class SwitchTaskDefinitionBuilder
/// <summary>
/// Gets a name/value mapping of the cases of the <see cref="SwitchTaskDefinition"/> to build
/// </summary>
protected EquatableDictionary<string, SwitchCaseDefinition> Cases { get; } = [];
protected Map<string, SwitchCaseDefinition> Cases { get; } = [];

/// <inheritdoc/>
public ISwitchTaskDefinitionBuilder Case(string name, Action<ISwitchCaseDefinitionBuilder> setup)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ public record SwitchTaskDefinition
/// </summary>
[Required]
[DataMember(Name = "switch", Order = 1), JsonPropertyName("switch"), JsonPropertyOrder(1), YamlMember(Alias = "switch", Order = 1)]
public required virtual EquatableDictionary<string, SwitchCaseDefinition> Switch { get; set; }
public required virtual Map<string, SwitchCaseDefinition> Switch { get; set; }

}

0 comments on commit 5000ea3

Please sign in to comment.