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

Serialization without annotations #1807

Closed
rrva opened this issue Dec 25, 2021 · 1 comment
Closed

Serialization without annotations #1807

rrva opened this issue Dec 25, 2021 · 1 comment
Labels

Comments

@rrva
Copy link

rrva commented Dec 25, 2021

What is your use-case and why do you need this feature?

It is cumbersome to have to annotate all classes you want to be able to serialize with @serializable. Switching between for example jackson and kotlinx-serialization is more work. Code without annotations looks cleaner.

Describe the solution you'd like

Some config option to tell the compiler plugin that "mark all classes in packages foo.bar, foo.xyz as serializable", and you would not have to use annotations. If this is not easy to do / less clear, then perhaps a compromise would be to allow a file-level annotation that marks all classes (or all data classes) in that file as serializable (@file:Serializable)

@rrva rrva added the feature label Dec 25, 2021
@sandwwraith
Copy link
Member

See the answer to similar question here: #1808 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants