-
Notifications
You must be signed in to change notification settings - Fork 213
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
to_dict returns wrong enum fields when numbering is not consecutive #93
Labels
bug
Something isn't working
good first issue
Good for newcomers
has test
Has a (xfail) test that verifies the bugfix or feature
small
Low effort issue that can easily be picked up
Milestone
Comments
boukeversteegh
added
bug
Something isn't working
good first issue
Good for newcomers
small
Low effort issue that can easily be picked up
labels
Jun 14, 2020
Awesome bugreport! Thanks! Would you be willing to add this test-case to our standard tests? You basically only need to:
Details are described here: Standard Tests Development Guide |
Sure @boukeversteegh ! Created a PR #94 |
boukeversteegh
added
the
has test
Has a (xfail) test that verifies the bugfix or feature
label
Jun 15, 2020
boukeversteegh
added a commit
to boukeversteegh/python-betterproto
that referenced
this issue
Jul 4, 2020
…d to_dict when the enum values are not consecutive. Also ensure enums work well with integer values and invalid values are rejected.
boukeversteegh
added a commit
to boukeversteegh/python-betterproto
that referenced
this issue
Jul 11, 2020
…ng is not consecutive
Gobot1234
pushed a commit
to Gobot1234/python-betterproto
that referenced
this issue
Aug 24, 2020
…ive (danielgtaylor#102) Fixes danielgtaylor#93 to_dict returns wrong enum fields when numbering is not consecutive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
good first issue
Good for newcomers
has test
Has a (xfail) test that verifies the bugfix or feature
small
Low effort issue that can easily be picked up
Protobuf spec file like this:
Generates the following Python bindings:
To reproduce the bug:
The text was updated successfully, but these errors were encountered: