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

Have an option to choose field order when serializing #151

Closed
mildred opened this issue Feb 24, 2016 · 2 comments
Closed

Have an option to choose field order when serializing #151

mildred opened this issue Feb 24, 2016 · 2 comments

Comments

@mildred
Copy link

mildred commented Feb 24, 2016

I have a protocol buffer message that I must be able to generate choosing the precise field order. Currently, it is sorted in tag order. Previously the order was the same as the order on the .proto file.

This is a problem for me because I need to be able to generate the message exactly in the correct order. This is because the message is then hashed and the hash must be equal to the previous serialization of the same message.

This is why I ask if it is possible to add an option to get the old ordering back.

@awalterschulze
Copy link
Member

It was changed, because of this issue
#42

We also hash our protobufs, but didn't feel your pain, because our tag order and field order has always been the same.

@awalterschulze
Copy link
Member

I don't think we can it back, but please reply if you think we should reopen

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

2 participants