congbobo184 edited a comment on issue #9602: URL: https://github.com/apache/pulsar/issues/9602#issuecomment-781140574
because we record the json schema by avro schema generate, broker validate the compatibility unified management through avro. the above example ```User.class``` Schema.JSON and Schema.AVRO generate the schema data are the same. So you can use the ```Schema.Avro(User.class)``` send message. This logic was like this before. This is a wrong logic, but if change this logic, it maybe produce the problem after broker version update when previous can connect producer or consumer will not connect correctly. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org