Skip to content

Commit

Permalink
fix: process nested messages recursively (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdymylja authored Dec 15, 2021
1 parent d429922 commit 83b328b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion features/fastreflection/proto_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func GenProtoMessage(f *protogen.File, g *generator.GeneratedFile, message *prot
if nested.Desc.IsMapEntry() {
continue
}
genMessage(f, g, nested)
GenProtoMessage(f, g, nested)
}
}

Expand Down
3 changes: 2 additions & 1 deletion internal/testprotos/test3/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ syntax = "proto3";

package goproto.proto.test3;

option go_package = "github.com/cosmos/cosmos-proto/internal/testprotos/test3";

import "internal/testprotos/test3/test_import.proto";

option go_package = "github.com/cosmos/cosmos-proto/internal/testprotos/test3";

message TestAllTypes {

Expand Down

0 comments on commit 83b328b

Please sign in to comment.