-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: support google.api.http annotation #83
Merged
Merged
Changes from 6 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a00ec81
x-goog-request
xiaozhenliu-gg5 e89ba37
add header-params filed in method
xiaozhenliu-gg5 849a9b2
update baseline
xiaozhenliu-gg5 29ac019
baseline update
xiaozhenliu-gg5 3e1185e
add logic for routing header
xiaozhenliu-gg5 5946c7c
feedback
xiaozhenliu-gg5 d7eaa28
params use snake case instead of camel case
xiaozhenliu-gg5 883b1c0
regex match, take 2 element
xiaozhenliu-gg5 6de66f9
lint
xiaozhenliu-gg5 d8080f0
move init request method in test to util as a macro
xiaozhenliu-gg5 190f34e
feedback
xiaozhenliu-gg5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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 should be snake_case for the left part and camelCase for the right part. Left part is basically taken from proto as is (since it gets passed to gRPC server as a header), right part is converted to camelCase because it's how
protobufjs
processes keys with underscore.Example here: https://github.com/googleapis/nodejs-logging/blob/dcb48172656de8b449a2c05e8cbe999ebaac90bf/src/v2/metrics_service_v2_client.js#L460
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.
Actually, if we discuss it, it would be nice to have it covered by a baseline test :)
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.
sounds great! but do you mean unit test? we have
keymanager
translate
,text-to-speech
API which respects this routing header, do we want to add one more baseline test, or just test this functionality in theunit/
? Thanks!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.
Maybe add
logging
? (in a separate PR)