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
As it is now, the type value in the response will for example be PendingTransaction. However, if you try to deserialize that response using this struct + serde, it fails, because it expects the type field to be in snake case.
I have to have this unfortunately since I'm migrating a codebase to Poem and I still need the old serialization to work.
Would it be possible to add rename_all to unions to uniformly rename the mapping?
I've been making a lot of issues lately sorry hahahh.
Imagine I have a struct like this:
As it is now, the
type
value in the response will for example bePendingTransaction
. However, if you try to deserialize that response using this struct + serde, it fails, because it expects the type field to be in snake case.I have to have this unfortunately since I'm migrating a codebase to Poem and I still need the old serialization to work.
Would it be possible to add
rename_all
to unions to uniformly rename the mapping?So instead of this:
I just do this:
Thanks a lot!!
The text was updated successfully, but these errors were encountered: