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

More straightforward customization of ReadWriters behaviour #486

Open
szymon-rd opened this issue May 4, 2023 · 0 comments
Open

More straightforward customization of ReadWriters behaviour #486

szymon-rd opened this issue May 4, 2023 · 0 comments

Comments

@szymon-rd
Copy link

szymon-rd commented May 4, 2023

Right now, to make changes to the Option serialization (put null in json), or to use snake_case, one has to override corresponding methods in the AttributeTagged. I propose two ways to improve the DX in this process:

  • Add traits to be used as add-ons (with cake pattern) in order to configure the serializers, for example traits such as SnakeCaseNaming or NoneValueAsNull:
object CustomPickle extends AttributeTagged, SnakeCaseNaming, NoneValueAsNull
  • Rename AttributeTagged to be more descriptive of its purpose and easier to remember. Maybe even CustomizableUpickleApi or CustomNamingUpickleApi.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant