pulsar-client-dotnet
pulsar-client-dotnet copied to clipboard
Schema with same class, record or enum for different fields throws error
Hi, we have a bug, that (at least for enums) we thought was fixed. If we use the same class, enum or record in different fields of a message like this:
` public class OrderMessage { public Address Address1 {get; set;} public Address Address2 {get; set;} }
public class Address { public string Street {get; set;} } `
then we get the following error when trying to produce a message:
System.Exception: Can not resolve JsonSchema 'type' id of "record", not recognized as one of standard values: [STRING, NUMBER, INTEGER, BOOLEAN, OBJECT, ARRAY, NULL, ANY] at <StartupCode$Pulsar-Client>[email protected]() at <StartupCode$Pulsar-Client>[email protected]() at <StartupCode$Pulsar-Client>[email protected]() at <StartupCode$Pulsar-Client>[email protected]()
There has been a similar issue: https://github.com/fsprojects/pulsar-client-dotnet/issues/201 that was originally fixed by a coworker. We are wondering what can cause this to be back.
We use Pulsar Server Version 2.9.2; pulsar-client-dotnet 2.15.0
Thanks in advance