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

Generated serializer with internal access modifier for public class #2801

Open
EpicDima opened this issue Aug 29, 2024 · 1 comment
Open
Labels

Comments

@EpicDima
Copy link

As far as I understand, now the serializer for classes is generated with such an access modifier, that is, public - public, internal - internal. And there is no way to control it. If I'm wrong, please let me know.

I would like to be able to generate the internal serializer and serializer field in the companion object as well.

This can be useful for a library that internally contains public classes that can be used as parameters, but serialization is done entirely internally without additional dependencies and actions on the part of the library user.
Of course, there is an option to use public models and convert them to internal models for serialization, but this is not always possible, for example, because of the large number of objects that will give an overhead because of this.

@sandwwraith
Copy link
Member

See #2108 (comment) — we do not have such feature currently, and do not have it in our plans, although it is nice to have it in some cases

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