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
Currently all struct fields for transaction and request models are serialized from sake_case to PascalCase. This is a problem because fields like flags for transactions and account for requests both need to be lowercase, but when serializing they get renamed to Flags and Account, which is invalid. I tried using #[serde(rename = "flags")], but #[serde(rename_all(serialize = "PascalCase", deserialize = "snake_case"))] seems to have a higher priority. It is possible to build custom Serialize implementations, but I could not figure out a good way to do it, yet.
The text was updated successfully, but these errors were encountered:
Currently all struct fields for transaction and request models are serialized from
sake_case
toPascalCase
. This is a problem because fields likeflags
for transactions andaccount
for requests both need to be lowercase, but when serializing they get renamed toFlags
andAccount
, which is invalid. I tried using#[serde(rename = "flags")]
, but#[serde(rename_all(serialize = "PascalCase", deserialize = "snake_case"))]
seems to have a higher priority. It is possible to build customSerialize
implementations, but I could not figure out a good way to do it, yet.The text was updated successfully, but these errors were encountered: