-
Notifications
You must be signed in to change notification settings - Fork 203
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
Serialize default values in oneofs when calling to_dict() or to_json() #110
Serialize default values in oneofs when calling to_dict() or to_json() #110
Commits on Jul 8, 2020
-
Serialize default values in oneofs when calling to_dict() or to_json()
This change is consistent with the official protobuf implementation. If a default value is set when using a oneof, and then a message is translated from message -> JSON -> message, the default value is kept in tact. Also, if no default value is set, they remain null.
Configuration menu - View commit details
-
Copy full SHA for 265c075 - Browse repository at this point
Copy the full SHA 265c075View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9eab6d - Browse repository at this point
Copy the full SHA d9eab6dView commit details -
Cleanup oneof_enum test cases, they should be fixed
This _should_ address: #63
Configuration menu - View commit details
-
Copy full SHA for 4fc2f71 - Browse repository at this point
Copy the full SHA 4fc2f71View commit details -
Include default value oneof fields when serializing to bytes
This will cause oneof fields with default values to explicitly be sent to clients. Note that does not mean that all fields are serialized and sent to clients, just those that _could_ be null and are not.
Configuration menu - View commit details
-
Copy full SHA for 68d58b3 - Browse repository at this point
Copy the full SHA 68d58b3View commit details
Commits on Jul 9, 2020
-
Remove assignment when populating a sub-message within a proto
Also, move setattr out one indentation level
Configuration menu - View commit details
-
Copy full SHA for 72f9686 - Browse repository at this point
Copy the full SHA 72f9686View commit details -
Properly transform proto with empty string in oneof to bytes
Also, updated tests to ensure that which_one_of picks up the set field
Configuration menu - View commit details
-
Copy full SHA for 4252a10 - Browse repository at this point
Copy the full SHA 4252a10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0726f7f - Browse repository at this point
Copy the full SHA 0726f7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4789636 - Browse repository at this point
Copy the full SHA 4789636View commit details -
Configuration menu - View commit details
-
Copy full SHA for f904b5c - Browse repository at this point
Copy the full SHA f904b5cView commit details
Commits on Jul 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2e86a44 - Browse repository at this point
Copy the full SHA 2e86a44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d3fa9e - Browse repository at this point
Copy the full SHA 8d3fa9eView commit details
Commits on Jul 13, 2020
-
Merge branch 'master' of github.com:danielgtaylor/python-betterproto …
…into brady/fix-default-values-oneof-serialization
Configuration menu - View commit details
-
Copy full SHA for b520064 - Browse repository at this point
Copy the full SHA b520064View commit details