Skip to content
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

Merged
merged 5 commits into from
Sep 6, 2022
Merged

Conversation

alpreu
Copy link
Contributor

@alpreu alpreu commented Sep 5, 2022

This is the followup PR for #82, adding tests for containing parameters and updating the docs with the supported schema types.

@alpreu
Copy link
Contributor Author

alpreu commented Sep 5, 2022

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.

@onobc
Copy link
Collaborator

onobc commented Sep 5, 2022

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

spring-pulsar/build.gradle Outdated Show resolved Hide resolved
Copy link
Collaborator

@onobc onobc left a 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).

@alpreu
Copy link
Contributor Author

alpreu commented Sep 6, 2022

Thanks for the kind words Chris and thanks for drawing my attention to how you manage the dependencies.
I moved the version there and also saw that you tried to keep everything neatly ordered, so I reordered the outliers as well while I was at it ;)

Copy link
Collaborator

@onobc onobc left a 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.

@onobc onobc merged commit 78efde7 into spring-projects:main Sep 6, 2022
template.setSchema(kvSchema);
template.send("keyvalue-topic", new KeyValue<>("Kevin", 3));
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants