Open devcsrj opened 4 years ago
I don't think your suggestion is compatible with grpc-gateway implementation. How will you parse the response so it will be translated to your proposed structure?
Hi @elyashivlavi ,
...compatible with grpc-gateway implementation.
~I'm not sure what you mean. Is grpc-gateway dependent on this (or vice versa)? If so, why are they dependent?~
I saw the -annotate
option (disabled by default), which is meant for grpc-gateway. Are you saying that this project is tied to grpc-gateway (and thus cannot freely make changes)?
...parse the response so it will be translated to your proposed structure?
What do you mean by response? I am under the impression that this project simply relies on an openapi file, and not a running gRPC server. Am I missing something?
In the README, the following caveat is stated:
Are there plans to support responses from other statuses?
I believe this can be achieved using the oneof construct. For example, instead of:
Assuming there's no
$ref
on the status code404
, this will become:Thoughts?