You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, every Req definition needs some common fileds(1~3).
I have to repeate them(might be a lot) in every message.
You might suggest to seperate these fields into a new message, like this:
But we are using grpcgateway, and the json proto is required by our company MUST be the former way:
(there might be a lot other reasons for people need proto be in this way)
My request might be similar to #192
Given the proto definition:
As you can see, every Req definition needs some common fileds(1~3).
I have to repeate them(might be a lot) in every message.
You might suggest to seperate these fields into a new message, like this:
But we are using grpcgateway, and the json proto is required by our company MUST be the former way:
(there might be a lot other reasons for people need proto be in this way)
The problem will be well solved if protobuf provide a syntax suger like this:
what protoc should do is to treat this definition as below:
This solution seems quite straightforward.
The text was updated successfully, but these errors were encountered: