From aaab19509ebe43d75c8e04e7606c6823df56f7f7 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Wed, 15 Jan 2025 10:50:17 +0100 Subject: [PATCH] Fix array type handling in ArgumentJsonConverter Previously, the code incorrectly used `MakeCollectionType` for arrays. This has been corrected to use `MakeArrayType`, ensuring proper deserialization of array arguments. --- .../Elsa.Workflows.Api/Serialization/ArgumentJsonConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Elsa.Workflows.Api/Serialization/ArgumentJsonConverter.cs b/src/modules/Elsa.Workflows.Api/Serialization/ArgumentJsonConverter.cs index 0900930e8..81f5a0d42 100644 --- a/src/modules/Elsa.Workflows.Api/Serialization/ArgumentJsonConverter.cs +++ b/src/modules/Elsa.Workflows.Api/Serialization/ArgumentJsonConverter.cs @@ -44,7 +44,7 @@ public class ArgumentJsonConverter : JsonConverter var type = _wellKnownTypeRegistry.GetTypeOrDefault(typeName); if (isArray) - type = type.MakeCollectionType(); + type = type.MakeArrayType(); var newOptions = new JsonSerializerOptions(options); newOptions.Converters.RemoveWhere(x => x is ArgumentJsonConverterFactory);