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

Add prefix, suffix class attribute #282

Open
yukinarit opened this issue Nov 26, 2022 · 0 comments
Open

Add prefix, suffix class attribute #282

yukinarit opened this issue Nov 26, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@yukinarit
Copy link
Owner

It would be convenient if pyserde could do like

@serde(prefix="foo", suffix="key")
class Foo:
    a: str

Then Foo can be deserialized from {"foo_a_key": "..."}.

If we set rename_all="camelcase", it will be {"fooAKey": "..."}.

@yukinarit yukinarit added the enhancement New feature or request label Nov 26, 2022
@yukinarit yukinarit added this to 📝 Backlog in Roadmap via automation Nov 26, 2022
@yukinarit yukinarit removed this from 📝 Backlog in Roadmap Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant