-
Notifications
You must be signed in to change notification settings - Fork 94
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
Does BBPB support repeated type data? #32
Comments
Hi! It looks like the decoder is not tagging the field with On a protocol level, protobuf doesn't actually distinguish between repeated and non-repeated fields unless they are packed, so bbpb doesn't usually care whether a field should be repeated or not. Messages are encoded with The |
Oh, Yes, You're absolutely right! |
Hi, I just pushed version 1.1.1 to github and pypi which I think should handle the Let me know if that does or doesn't work for you. Thanks! |
Hi, Thank you very much for developing such a great tool as BBPB, but I'm having some issues at the moment. Can you help me?
I'm using the latest version of the BBPB library, but today found that it doesn't seem to parse data of type repeated correctly.
I have a protobuf data like this:
Then I want to generate a proto file for it, which might look like this:
But in practice, when I call BBPB's decode_message() method, the resulting typedef return value looks like this:
After I wrap the typedef around a layer of a TestClass class name, the typedef looks like this:
The proto file generated by calling the export_proto() method with that typedef looks like this:
Apparently the repeated modifier is missing.
Is this a bug? or am I using it in the wrong way?
The text was updated successfully, but these errors were encountered: