-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Support param for field from Oneof definition. #621
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your great contribution. Almost LGTM except minor comments.
- comments about error messages
- unused proto field
- Could you regenerate files in
example/...
bymake examples
?
File integrity check seems to be failing on TravisCI. https://travis-ci.org/grpc-ecosystem/grpc-gateway/jobs/371495622#L712
return | ||
} | ||
if got, want := msg.GetStatus().GetNote(), "golang"; got != want { | ||
t.Errorf("msg.Lang = %q; want %q", got, want) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"msg.GetStaus().GetNote() = %q; want %q"
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
return | ||
} | ||
if got, want := msg.GetNo().GetNote(), "golang"; got != want { | ||
t.Errorf("msg.Lang = %q; want %q", got, want) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"msg.GetNo().GetNote() = %q; want %q"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
int64 line_num = 3; | ||
string lang = 4; | ||
} | ||
int64 time = 5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove time
if you are not using it?
I'd like to keep SimpleMessage
as simple as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
I didn't know those files need be regenerated and reason of build failure. |
Codecov Report
@@ Coverage Diff @@
## master #621 +/- ##
==========================================
- Coverage 59.12% 58.88% -0.25%
==========================================
Files 30 30
Lines 2838 2853 +15
==========================================
+ Hits 1678 1680 +2
- Misses 998 1010 +12
- Partials 162 163 +1
Continue to review full report at Codecov.
|
LGTM. Thank you for your contribution. |
* Support param for field from Oneof definition. * Fix error reason and regenerate files. * Regenerate echo_service.pb.gw.go.
when the param binds with a field defined by Oneof, it can not be assigned directly.