-
Notifications
You must be signed in to change notification settings - Fork 635
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
Protobuf repeated uint, fixed and enum serialization not working #2401
Comments
I guess it's because
makes @prototype applied to List and not Int. Correct way to use it would be |
OK it makes sense, but it seems like that For
I think Is there anything I can do to help? What is the preferred way to fix this? Maybe we can create a custom serializer for those types temporarily? |
I'm not sure custom serializer would help, because it doesn't have a place to pass |
I don't have much context on how to resolve those issues but I am able to successfully reproduce them so I opened a PR here: This PR should include a very extensive test suite that can be run. I hope solutions to the bugs can be written on top of this suite so we can verify them as they are fixed. I also think having those conformance tests is a great way to track the completeness and maturity of the library. What are your thoughts @sandwwraith ? I am hoping that this is useful. |
I opened three sub issues, closing this one |
Describe the bug
Any field in the following message is not being able to serialize:
I think the documentation has some conflicting into, according to my tests uints and sfixed's work fine.
I just added
SIGNED
to sfixed and it turned out OK. But when it comes to repeated values, I think just writingdoes not work. I haven't tested
Map
completely yet but I think there is gonna be a similar issue there too.To Reproduce
As I am running conformance tests from my public project and it contains lots of lines, here is the link to tests, you can find every offender in tests as commented in source code.
Link to project tests
Expected behavior
All types should serialize / deserialize correctly.
Environment
The text was updated successfully, but these errors were encountered: