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

Support preserving unknown fields in ProtoBuf format #2860

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

xiaozhikang0916
Copy link
Contributor

Introducing new annotation @ProtoUnknownFields and built-in type ProtoMessage, to store any fields with proto ids that are undefined in current message class.

In my understanding, both ktx-serialization and protocol buffer are designed in strong typing, all messages used in code should be well defined in kt class or proto message. Therefore I would like to keep ProtoMessage and ProtoField minimun published. Not like JsonObject in json format, users cannot retrieve detailed data from it.

Close #2655

@xiaozhikang0916 xiaozhikang0916 changed the base branch from master to dev November 18, 2024 04:04
@xiaozhikang0916
Copy link
Contributor Author

@sandwwraith Hi, please take a look here?

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

Successfully merging this pull request may close these issues.

Supporting protobuf preserving unknown fields
1 participant