-
Notifications
You must be signed in to change notification settings - Fork 74
Grpc transcoding supports preserve proto name #685
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
Conversation
1194c4b
to
ecac98d
Compare
Fixes #682 |
ok(ApiManager::verify_http_json_response($response1, | ||
{'shelfId'=>'100', }), "The shelf_id 1 was echoed successfully."); | ||
ok(ApiManager::verify_http_json_response($response2, | ||
{'shelfId'=>'100', }), "The shelfId 2 was echoed successfully."); |
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.
-> 2 ?
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.
Updated
|
||
ok(ApiManager::verify_http_json_response($response1, | ||
{'shelfId'=>'100', }), "The shelf_id 1 was echoed successfully."); | ||
ok(ApiManager::verify_http_json_response($response2, |
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.
-> 1, to keep it consistent with the description?
Same for the following one.
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.
Updated
@@ -177,6 +177,9 @@ ngx_esp_request_ctx_s::ngx_esp_request_ctx_s(ngx_http_request_t *r, | |||
if (lc->esp->get_always_print_primitive_fields()) { | |||
json_print_options.always_print_primitive_fields = true; | |||
} | |||
if (lc->esp->get_preserve_proto_field_names()) { | |||
json_print_options.preserve_proto_field_names = true; |
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.
So, the transcoding lib does support this feature, what needs to be done here is just pass in the configuration?
Should we do this for CloudESF as well?
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.
Yes
which release contains this fix? I just tried latest version 1.43.0 it does not support it yet |
From our release note, it has been included since 1.39.0. |
Added a flag in start_esp --transcoding_preserve_proto_field_names. If it is true, grpc transcoding will preserve proto names.