You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, I should have mentioned that I'm working on this now, and just put together a rough implementation.
The use case I have in mind is something like a REST API where the user can post a "partial" JSON object (e.g. a user's information but not an identifier). Having DecodeJson instances for Id => User would eliminate the need for separate partial case classes.
Suppose we've got a case class like this:
It shouldn't be too hard to derive "incomplete"
DecodeJson
instances:The input type could optionally be a record in cases where the case class has multiple members of the same type and we need to disambiguate.
The text was updated successfully, but these errors were encountered: