Closed sshaplygin closed 4 years ago
Clay does not correct generate .pb.goclay.go file, if in proto-file exists into body exists one of proto-field with [(gogoproto.nullable) = false];
[(gogoproto.nullable) = false];
Example proto-file
rpc UserV1 (UserRequest) returns (UserResponse) { option (google.api.http) = { post: "UserV1" body: "user" }; } ... message UserRequest { User user = 1; [(gogoproto.nullable) = false]; }
Example piece generated code into .pb.goclay.go
... req.User = &User{} ...
Error into generate template - https://github.com/utrack/clay/blob/master/cmd/protoc-gen-goclay/genhandler/template.go#L310
Resolved
Clay does not correct generate .pb.goclay.go file, if in proto-file exists into body exists one of proto-field with
[(gogoproto.nullable) = false];
Example proto-file
Example piece generated code into .pb.goclay.go
Error into generate template - https://github.com/utrack/clay/blob/master/cmd/protoc-gen-goclay/genhandler/template.go#L310