-
Notifications
You must be signed in to change notification settings - Fork 34
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
Include generic parameters in record name #444
base: master
Are you sure you want to change the base?
Conversation
I like this but I'd like to make it configurable so we don't make breaking changes to existing code - it would also be good to have configurable separators I think. We could either add a version of I'm also open to better naming suggestions 🙂 |
Thanks for the feedback @bplommer - I also prefer the first option of passing configuration parameters to the |
One thing I'd say is to use a builder rather than a case class for the config so that it can be extended later in a binary compatible way. Not sure how familiar you are with that pattern, happy to go into more detail if needed. |
@bplommer - I have something working for Scala 2 and am a little stuck on Scala 3. Before getting in too deep, I wanted to check with you I'm heading in the right direction. I've added a |
@bplommer Are you sure you want to make the separators configurable? What kind of use case do you have in mind? It seems to need a lot of code so we should be sure it is worth it. |
Hey! @bplommer any update on this, is it possible to merge it? I'm also migrating from avro4s and this would be nice to have |
I think I found the solution how to do it without modifying the libarary
but this won't solve anything nested ofc 😔 |
Fixes "Generic parameters are not included in a record name" of #442.
Follows the same conventions as Avro4s by separating the case class name and types with
__
and the types themselves with_
.