-
Notifications
You must be signed in to change notification settings - Fork 37
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
fix: Fix Timestamp, Duration and FieldMask marshaling in REST transport #334
Conversation
for more details. | ||
""" | ||
|
||
def to_python(self, value, *, absent: bool = None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it expected to be a string ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what specifically? This just follows a similar convention of other Rules (they do exaclty the same thing as I have here).
def to_python(self, value, *, absent: bool = None): | ||
return value | ||
|
||
def to_proto(self, value): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are possible types for value ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this protoplus proto or protobuf proto ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proto-plus
for more details. | ||
""" | ||
|
||
def to_python(self, value, *, absent: bool = None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not used - should be removed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not used, but other rules still have it (i ti snot used in most places), so keeping it like this for consistency.
This fixes #333
BEGIN_COMMIT_OVERRIDE
fix: Fix Timestamp, Duration and FieldMask marshaling in REST transport
Release-As: 1.22.0
END_COMMIT_OVERRIDE