瀏覽代碼

Provide conformance for messages provided by SwiftProtobuf (#811)

Motivation:

We currently generate conformance to `GRPCProtobufPayload` based on the
input and output types of `rpc`s defined in .proto files passed to the
plugin. This works in some situations, including when the .proto file
for the message in question is not present (such as those provided by
the SwiftProtobuf library; `Google_Protobuf_*`). However this is
problematic if the plugin is invoked on a file-by-file basis where each
file contains the message since the conformance would be erroneously
generated mulutple times.

Modifications:

- Provide conformance to all `Google_Protobuf_*` messages currently
  vendored by `SwiftProtobuf`
- Generaate conformance only based on the `message`s defined in each
  .proto file
- Add a few generation tests

Result:

Multiple conformance generation is avoided in the scenario set out
above.
George Barnett 5 年之前
父節點
當前提交
bf283c3051
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      .gitignore

+ 1 - 0
.gitignore

@@ -17,3 +17,4 @@ third_party/**
 Examples/EchoWeb/dist
 Examples/EchoWeb/dist
 Examples/EchoWeb/node_modules
 Examples/EchoWeb/node_modules
 Examples/EchoWeb/package-lock.json
 Examples/EchoWeb/package-lock.json
+dev/codegen-tests/**/generated/*