Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash When Generating Services Using gogoproto.embed #319

Open
hunter001325 opened this issue Dec 4, 2020 · 1 comment
Open

Crash When Generating Services Using gogoproto.embed #319

hunter001325 opened this issue Dec 4, 2020 · 1 comment

Comments

@hunter001325
Copy link

hunter001325 commented Dec 4, 2020

1、I define protocolbuff message with gogoproto.embed, for example:
`
message UserBase {
optional int64 id = 1;
}

message UserDetail {
optional UserBase UserBase = 1 [(gogoproto.nullable) = false, (gogoproto.embed) = true];
optional string name = 2 [(gogoproto.nullable) = true];
}
`

crash as below:
image

There hasn't Names:
image

2、protocolbuff support embed filed:
https://godoc.org/github.com/gogo/protobuf/gogoproto#hdr-More_Canonical_Go_Structures
image

@zaquestion
Copy link
Member

Making truss not panic should be pretty straightforward, but marshaling support may be limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants