-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
Poem converts cases differently than serde #362
Comments
Upon diving deeper, I see Poem uses inflector while serde uses its own thing: https://github.com/serde-rs/serde/blob/master/serde_derive/src/internals/case.rs. |
Seems like the serde stuff is accessible: https://crates.io/crates/serde_derive_internals. I'll make a PR if you think the idea to switch over makes sense @sunli829. |
Can't use |
Perhaps relying on serde_derive_internals might be the best option? Let me know if you're working on this, if not I can try implement it myself :) |
I'm working on this. |
I've push changes in |
Works perfectly, thanks a lot! Using it in aptos-labs/aptos-core#2764 to great effect. |
Code demonstrating the issue:
Output:
I feel we should strive to make the behavior match here.
The text was updated successfully, but these errors were encountered: