Closed
Description
Describe the bug
After updating to 1.0.0-alpha.15, updating protobuf to the latest version and regenerating the proto files, the generated code doesn't compile anymore, due to missing extension ProtoType: GRPCProtobufPayload {}
conformances for all nested types.
Dependency versions:
grpc-swift 1.0.0-alpha.15
protobuf 3.12.3
swift-protobuf 1.10.0
Xcode 11.5
To reproduce
- Create a proto file with messages that contain nested messages.
All.pb
message ProtoMarketData {
oneof marketData {
List list = 1;
Detail detail = 2;
}
message List {
int32 id = 1;
}
message Detail {
int32 id = 1;
}
}
- Generate the swift files
- Try to build the swift files
- Compiler error
Type 'ProtoMarketData.Detail' does not conform to protocol 'GRPCPayload'
Expected behaviour
The generated code should compile
Additional information
Looking at the All.grpc.swift file, it contains a line extension ProtoMarketData: GRPCProtobufPayload {}
, but no extensions for its nested messages, List
and Detail
.