Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV: False serialization #8

Closed
LimpidCrypto opened this issue Jul 4, 2022 · 1 comment
Closed

DEV: False serialization #8

LimpidCrypto opened this issue Jul 4, 2022 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@LimpidCrypto
Copy link
Collaborator

LimpidCrypto commented Jul 4, 2022

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.

@LimpidCrypto LimpidCrypto added bug Something isn't working help wanted Extra attention is needed labels Jul 4, 2022
@LimpidCrypto LimpidCrypto changed the title Dev: False serialization DEV: False serialization Jul 4, 2022
@LimpidCrypto
Copy link
Collaborator Author

I think I got a little bit mixed up how serialization works here. Serialization works fine :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants