FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: remove trailing underscore in transcoding by parthea · Pull Request #489 · googleapis/python-api-core · GitHub

This repository was archived by the owner on Feb 23, 2026. It is now read-only.
/ python-api-core Public archive

fix: remove trailing underscore in transcoding - #489

Closed
parthea wants to merge 16 commits into
mainfrom
remove-trailing-underscore-transcoding
Closed

fix: remove trailing underscore in transcoding#489
parthea wants to merge 16 commits into
mainfrom
remove-trailing-underscore-transcoding

Conversation

parthea commented Mar 7, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Fixes googleapis/google-cloud-python#15074
Googlers see proposal go/python-transcoding-reserved-keywords

This PR fixes an error seen in googleapis/python-debugger-client#151 which happens when the gapic generator appends an underscore to a field name which is a python reserved keyword. As similar issue was reported in #227 and fixed in #228. Based on comment #227 (comment) it is not possible for fields to have trailing _ at the proto level (Creating a field like this generates an error from the protobuf runtime).

See build log https://github.com/googleapis/python-debugger-client/actions/runs/4292539515/jobs/7479094983 which shows the failure when a request has body with breakpoint_ instead of breakpoint_.

parthea closed this Mar 7, 2023
product-auto-label Bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Mar 7, 2023
parthea marked this pull request as ready for review March 7, 2023 15:58
parthea requested review from a team March 7, 2023 15:58

vchudnov-g left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Question about simplifying/robustifying processing...

Comment thread tests/unit/test_path_template.py Outdated
Comment thread google/api_core/path_template.py Outdated
parthea requested a review from atulep March 8, 2023 10:35
Comment thread google/api_core/path_template.py Outdated
parthea requested a review from atulep March 14, 2023 13:48

parthea commented Mar 14, 2023

Copy link
Copy Markdown
Contributor Author

Waiting for approval in go/python-transcoding-reserved-keywords

parthea added the status: blocked Resolving the issue is dependent on other work. label Mar 14, 2023
parthea requested a review from BenRKarl March 16, 2023 11:39
parthea closed this Jul 4, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: m Pull request size is medium. status: blocked Resolving the issue is dependent on other work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transcoding fails when HTTP request body contains a field name which is a reserved word in python

5 participants


Back | FazBrowse Home | New Git URL