Closed vaidasn closed 2 years ago
changes could not support repeated fields
This PR works correctly for my project which has repeated field.
What result did you get? The changes just want skip the case, how does it support repeated
fields?
The template is also called recursively from message.tpl#L43. As https://pkg.go.dev/github.com/lyft/protoc-gen-star#FieldType states $f.Type.Embed
returns nil
for maps and repeated fields.
I know that, what I really mean is that you'r purpose is fixing it rather than supporting it. Acutally, in my thought the repeated field should be treated as embed field to generate if it is a message type.
Fixes #1