spetz commented on code in PR #2637:
URL: https://github.com/apache/iggy/pull/2637#discussion_r2747074012


##########
foreign/csharp/Iggy_SDK/JsonConverters/HeaderKeyConverter.cs:
##########
@@ -25,22 +25,103 @@ internal class HeaderKeyConverter : 
JsonConverter<HeaderKey>
 {
     public override HeaderKey Read(ref Utf8JsonReader reader, Type 
typeToConvert, JsonSerializerOptions options)
     {
-        return HeaderKey.New(reader.GetString() ?? throw new 
JsonException("Header key cannot be null or empty."));
+        if (reader.TokenType != JsonTokenType.StartObject)

Review Comment:
   Fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to