Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Supporting confluent compliant schema registry #86
We use schema registry to maintain our schemas & versions. It would be great to have an integration with the same.
This is what I propose the solution should look like:
I am happy to take it up and open a PR since we will be using it in-house very actively.
Hi @MrDHat! This seems like a very useful change, I would make a few comments:
If I understand it right, the goal here is to generate a new struct for a schema you get from the schema registry (instead of reading it from a .avsc file)? That seems fine as an extra, optional set of arguments for the struct-generating code. We should include the schema subject and version into the generated code as well.
I don't understand why this would change? The generated struct is tied to the specific schema it was generated with, once we fetch the schema text at generation-time why would we look it up again at runtime?
I would implement this as a Confluent schema registry client that wraps the existing VM, with a method like (pseudocode):
Every generated struct has a method like