Skip to content
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

Merged
merged 3 commits into from
Aug 5, 2022

Conversation

vam-google
Copy link
Contributor

@vam-google vam-google commented Aug 4, 2022

This fixes #333

BEGIN_COMMIT_OVERRIDE
fix: Fix Timestamp, Duration and FieldMask marshaling in REST transport
Release-As: 1.22.0
END_COMMIT_OVERRIDE

@vam-google vam-google requested review from a team as code owners August 4, 2022 05:45
@vam-google vam-google requested a review from atulep August 4, 2022 05:45
for more details.
"""

def to_python(self, value, *, absent: bool = None):
Copy link
Contributor

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 ?

Copy link
Contributor Author

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):
Copy link
Contributor

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 ?

Copy link
Contributor

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 ?

Copy link
Contributor Author

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):
Copy link
Contributor

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 ?

Copy link
Contributor Author

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.

@vam-google vam-google merged commit a2e7300 into googleapis:main Aug 5, 2022
@parthea parthea added the release-please:force-run To run release-please label Aug 10, 2022
@release-please release-please bot removed the release-please:force-run To run release-please label Aug 10, 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.

Proto JSON cannonical encoding is not supported for special types
3 participants