Skip to content

Schema with same class, record or enum for different fields throws error #246

@RufusK

Description

@RufusK

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>.$ProducerImpl.-ctor@480-55.MoveNext() at <StartupCode$Pulsar-Client>.$ProducerImpl.InitInternal@785.MoveNext() at <StartupCode$Pulsar-Client>.$ProducerImpl.Init@793.MoveNext() at <StartupCode$Pulsar-Client>.$PulsarClient.CreateProducerAsync@262.MoveNext()

There has been a similar issue: #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions