calindima commented on issue #1296: URL: https://github.com/apache/pulsar-client-go/issues/1296#issuecomment-2428495723
I expected JsonSchema to function similarly to AvroSchema, since its very close to it - schema definition is Avro for both, only the type in SchemaInfo is what differs, and how message validation works apparently. Might be a naive view since I haven't looked at how they differ in the internals of Pulsar. Shouldn't the client library ensure that messages sent with a Schema Producer adhere to its schema? [This](https://github.com/fsprojects/pulsar-client-dotnet/) .NET library returns a typed producer which can't send other type of messages through it, for example. My impression of the schema validation feature of Pulsar is that it should bring in some guardrails to get some contract between producers and consumers. -- 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]
