-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Am I correct in thinking I should be able to use a JsonSerde
for both the key and value in a stream?
Deserialization fails when using JsonSerde
to serialize both the key and value of a topic.
The key and value are both given the same header value here:
Line 177 in 31431fa
addHeader(headers, getClassIdFieldName(), javaType.getRawClass()); |
So when deserializing, the key and value header chosen is simply the first header in the list. This results in attempting to deserialize the value as the key type.
Line 116 in 31431fa
classId = new String(headerValue.value(), StandardCharsets.UTF_8); |
I've created a test to demonstrate the issue here:
I might be able to attempt a fix using different headers soon if people think that would be appropriate?