GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — fix: don't use integer for enums in json encoding by yon-mg · Pull Request #761 · googleapis/gapic-generator-python
This repository was archived by the owner on Aug 25, 2026. It is now read-only.
Conversation
|
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## master #761 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 27 27 Lines 1619 1619 Branches 328 328 ========================================= Hits 1619 1619 Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Integers for enums in json encoded requests is not desired.
Out of curiosity is there a doc somewhere stating this? Is it for human readability?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
If there is already a unit test that checks the REST request sent out, it would be good to capture this there. But if there isn't, don't worry about it right now; we'll do it later.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@busunkim96 Yes, the internal design docs specify this. Essentially, we can't guarantee that the numeric values will be preserved when converting from the Discovery file, so we use the string representations. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.