-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
Hi there 👋 First, thank you very much for your work on this library, it's honestly amazing!
I'm not sure whether this is already supported or not, but I was wondering whether it's possible to map from one enum / case class to another applying a constant function to map the field names.
Example:
enum size:
case small, large
enum Size:
case Small, LargeIn such case, one could transform size -> Size by mapping the field names using the .capitalize method.
Is something like this currently supported by the library? One usecase for this is that API models might use different notations (kebab-case vs snake-case, etc) than DAOs. It would be amazing if there was a way to do this transformation without having to explicitly map all the fields manually!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels