calindima commented on issue #1296:
URL: 
https://github.com/apache/pulsar-client-go/issues/1296#issuecomment-2462442858

   @RobertIndie 
   > For example, I noticed that although AvroSchema offers the validation we 
were looking for, you can just override schema completely by using Payload 
instead of Value to send a message, which means although you create a Schema 
Producer, you can still publish incompatible messages, which leaves a lot of 
checks in the hands of producers, instead of having them follow a paved path 
for this feature.
   
   Would it make sense for me to contribute some extra validation to not allow 
using Payload if a schema is used, ensuring that you can't override schema 
validation? I think this could be added 
[here](https://github.com/apache/pulsar-client-go/blob/master/pulsar/producer_partition.go#L1119).


-- 
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]

Reply via email to