From 750b4804fe09b1daa4b26824b0261a4eac43f20f Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Fri, 27 Sep 2024 13:10:22 +0200 Subject: [PATCH] Add GetOptions method to ISafeSerializer interface This new method retrieves the JSON serializer options, enhancing flexibility in how JSON data is handled. It provides an additional way to customize serialization settings contextually. --- src/modules/Elsa.Workflows.Core/Contracts/ISafeSerializer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/Elsa.Workflows.Core/Contracts/ISafeSerializer.cs b/src/modules/Elsa.Workflows.Core/Contracts/ISafeSerializer.cs index 79f18e7b2..1bf90ac24 100644 --- a/src/modules/Elsa.Workflows.Core/Contracts/ISafeSerializer.cs +++ b/src/modules/Elsa.Workflows.Core/Contracts/ISafeSerializer.cs @@ -59,4 +59,9 @@ public interface ISafeSerializer /// [RequiresUnreferencedCode("The type T may be trimmed.")] T Deserialize(JsonElement element, CancellationToken cancellationToken = default); + + /// + /// Gets the JSON serializer options. + /// + JsonSerializerOptions GetOptions(); } \ No newline at end of file