elsa-core/test/integration/Elsa.Workflows.IntegrationTests
Robin Sue 0a349451cd
Fix Serialization of generic types including collections (#6148)
#5682 broke serialization in two ways:
- When a generic type was being serialized, such as List`1, the ` was being escaped by JsonSerializer.Serialize to "\u0060". The PolymorphicObjectConverter would then .Trim('"') without unescaping the `, causing "\\u0060" to be written into the final json.
- When the type is generic with one type parameter, e.g. List<T>, and also IEnumerable<T>, as List<T> is, then it would append "[]" at the end of the type name, resulting in: "System.Collections.Generic.List\\u00601[[Elsa.Workflows.IntegrationTests.Serialization.JsonSerialization.WorkflowAction, Elsa.Workflows.IntegrationTests]], System.Private.CoreLib[]" which is very invalid. It may only do that, if the typename was simplified because the elementType is in the WellKnownTypeRegistry. And even then, this is questionable, as you'd be deserializing an string[] where you've serialized a List<string> for example.
2024-11-26 09:19:16 +01:00
..
Activities Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
Core Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
Scenarios Implement multitenant HTTP routing (#6031) 2024-10-14 21:27:11 +02:00
Serialization Fix Serialization of generic types including collections (#6148) 2024-11-26 09:19:16 +01:00
Elsa.Workflows.IntegrationTests.csproj Rename Elsa.ProtoActor to Elsa.Workflows.Runtime.ProtoActor 2024-07-22 15:09:25 +02:00
Elsa.Workflows.IntegrationTests.csproj.DotSettings Fix WorkflowExecutionContext bug (#4919) 2024-02-09 19:37:37 +01:00
Usings.cs Refactor Workflow Runtimes (#5444) 2024-06-10 19:36:51 +02:00