fix(rest): properly handle string-encoded well-known types in URLs#1282
Merged
vchudnov-g merged 4 commits intogoogleapis:mainfrom Mar 27, 2023
Merged
fix(rest): properly handle string-encoded well-known types in URLs#1282vchudnov-g merged 4 commits intogoogleapis:mainfrom
vchudnov-g merged 4 commits intogoogleapis:mainfrom
Conversation
PopulateOneField is called only for path params and query params, which are both unquoted.
af3dea8 to
f1c0bee
Compare
noahdietz
approved these changes
Mar 27, 2023
Contributor
noahdietz
left a comment
There was a problem hiding this comment.
One question, but otherwise, makes sense. Thank you
gcf-merge-on-green bot
pushed a commit
that referenced
this pull request
Mar 28, 2023
🤖 I have created a release *beep* *boop* --- ## [0.26.1](https://togithub.com/googleapis/gapic-showcase/compare/v0.26.0...v0.26.1) (2023-03-28) ### Bug Fixes * **rest:** Properly handle string-encoded well-known types in URLs ([#1282](https://togithub.com/googleapis/gapic-showcase/issues/1282)) ([579fe72](https://togithub.com/googleapis/gapic-showcase/commit/579fe729c0b506cdf48cd834beb14a8ffb4b5994)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
4 tasks
Contributor
Contributor
|
We probably need to test if it is already "quoted" before quoting it again via |
Contributor
|
#1294 should do it |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Well-known type messages that JSON-encode to strings appear in URL paths and query params unquoted. When we extract them from these places, we need to quote them to make them valid JSON that we can pass to the JSON deserializer. We weren't doing the quoting previously.
Fixes #1263