jak78 commented on issue #21561:
URL: https://github.com/apache/pulsar/issues/21561#issuecomment-1806241559

   Update: the `compatibility` endpoint is finally not designed to validate 
schemas because:
   - this is not the initial intent of this endpoint
   - it only works when there is an existing schema associated with the topic
   
   Now, I don't think my suggestion is the best one to solve the problem.
   
   I'm going to submit a PR to clarify that the format has to be an [AVRO 
Schema Declaration](https://avro.apache.org/docs/1.11.1/specification/) (even 
when you don't use Avro) and mention the link to the Avro spec: 
https://avro.apache.org/docs/1.11.1/specification/
   
   Then, I would suggest either:
   - updating the `upload` endpoint implementation to provide an explicit error 
when the schema is invalid
   - or: adding a new endpoint. Its purpose would be to validate a schema and 
provide a clear error message when the schema is invalid


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