Skip to content

[do not merge] Empty fields fix (based on v2.0.0b1) #1

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

Open
wants to merge 4 commits into
base: release-v2.0.0b1
Choose a base branch
from

Conversation

ckkz-it
Copy link

@ckkz-it ckkz-it commented Aug 18, 2021

Uses fix for serializing empty messages from danielgtaylor#180

Also fixes inheritance from betterproto messages (cover cases when it tries to resolve module by name in the module the class sits).

And serialize enum by value, instead of by name. This fixes cases for comparing

'IOS' in [DeviceType.IOS, DeviceType.Android]  # False - serializing by name
0 in [DeviceType.IOS, DeviceType.Android]  # True- serializing by value

@ckkz-it ckkz-it changed the title Empty fields fix [do not merge] Empty fields fix Aug 18, 2021
@maximagupov maximagupov changed the title [do not merge] Empty fields fix [do not merge] Empty fields fix (based on v2.0.0b1) Jul 25, 2022
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.

2 participants