-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Followup complex schemas #87
Conversation
Regarding the last commit (protobuf), I liked the idea of using the gradle plugin to generate the example java class from a .proto file during the build time, but after fighting with it for quite some time I gave up on it. |
Thanks for the follow up @alpreu . I will review this sometime today. I will also see if I can get the protoc going from the plugin (I have had success w/ this recently on an unrelated project). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alpreu another excellent contribution (what else would I expect at this point 😸 ). Thanks for beefing up the tests and docs and also the protobuf schema support.
My only comment is around dep. version management. Once that is addressed we can get this merged. I will check when I come online tomorrow.
As for the proto test file generation via the proto plugin... I did not get a chance to play w/ it. But we should be able to figure it out - not super important though. IIRC the plugin is picky on where the proto lives, and expects it to be in src/[main|test]/protobuf
(not 100% sure though).
Thanks for the kind words Chris and thanks for drawing my attention to how you manage the dependencies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update @alpreu .
and also saw that you tried to keep everything neatly ordered, so I reordered the outliers as well while I was at it ;)
Much appreciated!. Merging now.
template.setSchema(kvSchema); | ||
template.send("keyvalue-topic", new KeyValue<>("Kevin", 3)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alpreu I forgot to mention this... I see what you did here w/ the clever naming of the message payload to alpha-relate to the feature being tested (avro/avi, json/jason, keyvalue/kevin, protobuf/paul). Seems minor thing but its much better than "foo" or "msg-N" as it relates to test and could help in associating during debugging later etc..
This is the followup PR for #82, adding tests for containing parameters and updating the docs with the supported schema types.