From d0060230c7e0ec2fcf5ab1904bf449e502ee8bf4 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sat, 18 Nov 2023 13:47:31 +0100 Subject: [PATCH] Update Expression Value property to be object --- .../Resources/Scripting/Models/Expression.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/clients/Elsa.Api.Client/Resources/Scripting/Models/Expression.cs b/src/clients/Elsa.Api.Client/Resources/Scripting/Models/Expression.cs index e00cb23b5..130134880 100644 --- a/src/clients/Elsa.Api.Client/Resources/Scripting/Models/Expression.cs +++ b/src/clients/Elsa.Api.Client/Resources/Scripting/Models/Expression.cs @@ -32,22 +32,22 @@ public class Expression public string Type { get; set; } = default!; /// - /// Gets or sets the C# expression. + /// Gets or sets the value representing the expression. /// - public string? Value { get; set; } + public object? Value { get; set; } /// /// Returns the C# expression. /// - public override string ToString() => Value ?? ""; + public override string ToString() => Value?.ToString() ?? ""; /// /// Creates a literal expression. /// - public static Expression CreateLiteral(string value) => new Expression("Literal", value); + public static Expression CreateLiteral(string value) => new("Literal", value); /// /// Creates an object expression. /// - public static Expression CreateObject(string value) => new Expression("Object", value); + public static Expression CreateObject(string value) => new("Object", value); } \ No newline at end of file