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

Use enumeratum IntEnum for generated enums #184

Merged
merged 1 commit into from
Dec 11, 2019
Merged

Use enumeratum IntEnum for generated enums #184

merged 1 commit into from
Dec 11, 2019

Conversation

cb372
Copy link
Member

@cb372 cb372 commented Dec 11, 2019

See 47degrees/pbdirect#20

Because it is still a plain old sealed abstract class + case object hierarchy, this change will not affect Avro serialization using avro4s (confirmed with manual testing).

Note: This change assumes that enumeratum is on Mu's classpath, which is not yet true. PR to add it as a dependency.

Update: I've tested the whole .proto -> src gen -> gRPC server flow manually using locally-published artifacts and confirmed that protobuf enumerations now work 🎉

See 47degrees/pbdirect#20

Because it is still a plain old sealed abstract class + case object
hierarchy, this change will not affect Avro serialization using avro4s
(confirmed with manual testing).

Note: This change assumes that enumeratum is on Mu's classpath, which is
not yet true. PR on the way to add it as a dependency.
cb372 added a commit to higherkindness/mu-scala that referenced this pull request Dec 11, 2019
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.

Those are great news! Outstanding job @cb372 ! :shipit:

cb372 added a commit to higherkindness/mu-scala that referenced this pull request Dec 11, 2019
@cb372 cb372 merged commit c0a96ba into master Dec 11, 2019
@cb372 cb372 deleted the enumeratum branch December 11, 2019 17:47
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