Closed thomas-rabiller closed 2 months ago
Hey, Thank you for reporting the bug. I will work on a fix. Best, Adrian
Hello @thomas-rabiller
Thank you for your contribution. The fix is available from v.3.4.7 of AvroConvert.
Regards, Adrian
Many thanks! I confirm this fixes the problem on my end.
Thanks again for this great library
Kind regards Thomas
Hey @thomas-rabiller, I had to change the solution, as the previous introduced breaking changes to other scenarios. Please consider moving to v.3.4.8 Adrian
What is the bug? I am trying to use the serializer for a round trip Serialize/Deserialize of the same C# class type. For most types I've used this has worked fine but with a specific model containing two Dictionary properties, the deserialization fails.
How to reproduce?
This sample code fails using AvroConvert 3.4.6
Exception during Deserialize():
Please note that the same code works fine for a class with only one of the two dictionary properties. I suspect there is a mixup between the two during type resolution.
What is the Avro schema?
The schema is auto-generated from this class:
and produces the following json schema (please note the two dictionary types with same name:
What is the Avro data? Fill up the section or provide a sample file
Test avro file produced by the repro code here: test.zip
What is the expected behavior?
Both properties should be deserialized correctly based on the same reader and writer schemas.