From e5bbc26da53247f92ce7c8ee76fd5cc14458ed0c Mon Sep 17 00:00:00 2001 From: John Colvin Date: Tue, 18 Jun 2024 13:34:58 -0400 Subject: [PATCH] fix: Parse ServerAddress as normal string The "JsonValueOrArrayConverter" doesn't work the way I thought it would. When it is associated with a property via the JsonConverter attribute, dotnet json parsing code throws an exception if "T" isn't assignable to the property type. --- src/DataStreamSuite/PubSub/Client/Routing/PubSubRoute.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/DataStreamSuite/PubSub/Client/Routing/PubSubRoute.cs b/src/DataStreamSuite/PubSub/Client/Routing/PubSubRoute.cs index 8b589a275..61333116b 100644 --- a/src/DataStreamSuite/PubSub/Client/Routing/PubSubRoute.cs +++ b/src/DataStreamSuite/PubSub/Client/Routing/PubSubRoute.cs @@ -1,7 +1,5 @@ using mbts.utils; -using Spark.Core.Json; - using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; @@ -11,7 +9,6 @@ using System.Text.RegularExpressions; namespace BCG; public class PubSubRoute : IEquatable, IComparable { - [JsonConverter(typeof(JsonValueOrArrayConverter))] [JsonPropertyName("server_address")] public string? ServerAddress { get; set; }