diff --git a/src/ConductorSharp.Engine/Util/ExpressionUtil.cs b/src/ConductorSharp.Engine/Util/ExpressionUtil.cs index 7385541b..97c00d2a 100644 --- a/src/ConductorSharp.Engine/Util/ExpressionUtil.cs +++ b/src/ConductorSharp.Engine/Util/ExpressionUtil.cs @@ -34,7 +34,7 @@ public static Type ParseToType(Expression expression) private static object ParseExpression(Expression expression) { if (expression is ConstantExpression cex) - return Convert.ToString(cex.Value); + return cex.Value; if (expression is UnaryExpression uex && uex.Operand is ConstantExpression ccex) { diff --git a/test/ConductorSharp.Engine.Tests/Samples/Workflows/Arrays.json b/test/ConductorSharp.Engine.Tests/Samples/Workflows/Arrays.json index 406ec2a9..c6fa6333 100644 --- a/test/ConductorSharp.Engine.Tests/Samples/Workflows/Arrays.json +++ b/test/ConductorSharp.Engine.Tests/Samples/Workflows/Arrays.json @@ -15,9 +15,9 @@ "description": "{\"description\":null}", "inputParameters": { "integers": [ - "1", - "2", - "3" + 1, + 2, + 3 ], "models": [ { diff --git a/test/ConductorSharp.Engine.Tests/Samples/Workflows/NestedObjects.json b/test/ConductorSharp.Engine.Tests/Samples/Workflows/NestedObjects.json index 0b7d6e80..60fbbd0f 100644 --- a/test/ConductorSharp.Engine.Tests/Samples/Workflows/NestedObjects.json +++ b/test/ConductorSharp.Engine.Tests/Samples/Workflows/NestedObjects.json @@ -15,10 +15,10 @@ "description": "{\"description\":null}", "inputParameters": { "nested_objects": { - "integer": "1", + "integer": 1, "string": "test", "object": { - "integer": "1", + "integer": 1, "string": "string", "object": { "nested_input": "1"