Skip to content

Commit

Permalink
Fix parametrized type bug
Browse files Browse the repository at this point in the history
It has not been generating converting expressions for map and repeated if its parameter is a registered type
  • Loading branch information
Duzhinsky committed Sep 11, 2023
1 parent 3d0a5c0 commit ebce8d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import java.util.Arrays;

public class RegisteredType extends TypeModel {
public class RegisteredType extends DomainType {

private final TypeName protoType;

Expand Down
5 changes: 5 additions & 0 deletions tests/src/test/proto/general.proto
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@ message GrpcTask {
message GrpcTasksBatch {
GrpcBatchId id = 1;
repeated GrpcTask tasks = 2 [(.protogen.repeated_container) = SET];
}

message GrpcRegisteredMapList {
map<string, google.protobuf.Timestamp> m = 1;
repeated google.protobuf.Timestamp l = 2;
}

0 comments on commit ebce8d8

Please sign in to comment.