Closed justintuchek closed 5 years ago
If you want this, you should write your own enum adapter!
Think that's fair and definitely doable 👍
Maybe only specific to our use case but wanted to offer upstream if there was a chance to contribute back. Thanks Jesse!
Hey 👋
Wanted to put up a proposal for a modification to EnumJsonAdapter
It'd be great to be notified when the default value is used and what the key was that was unable to be mapped so it can be updated.
Here are a few things that came to mind where the name could be provided back to the consumer for reporting:
In use:
I know the implementation isn't currently in Kotlin, was easier to sketch out the changes. If this is something that seems like a good idea I'd be more than willing to open an PR!