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

Add pbIndex annotation to generated Scala code #187

Merged
merged 2 commits into from Dec 30, 2019
Merged

Conversation

cb372
Copy link
Member

@cb372 cb372 commented Dec 18, 2019

See 47degrees/pbdirect#21

If a Mu user chooses Protobuf for the serialization of messages, the pbdirect library will make use of these annotations to discover the correct index number of each field.

In the case of Avro serialization, the annotation will simply be ignored by avro4s.

Also tidied up the generated code slightly by putting each field on a separate line.

cb372 and others added 2 commits December 18, 2019 14:33
See 47degrees/pbdirect#21

Also tidy up the generated code slightly by putting each field on a
separate line.
Remove problematic `gem system update`, as it tries to overwrite executables but it expects a confirmation 🤦‍♂️
Copy link
Member

@juanpedromoreno juanpedromoreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

Copy link
Member

@BenFradet BenFradet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@pepegar pepegar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks @cb372

@cb372 cb372 merged commit 83c569a into master Dec 30, 2019
@cb372 cb372 deleted the pbIndex-annotation branch December 30, 2019 18:58
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.

None yet

5 participants