Add example of handling a required argument
More from:
https://github.com/twitchtv/twirp/wiki/Best-Practices
This commit is contained in:
@@ -9,9 +9,9 @@ service HelloWorld {
|
||||
}
|
||||
|
||||
message HelloReq {
|
||||
string subject = 1;
|
||||
string subject = 1; // required
|
||||
}
|
||||
|
||||
message HelloResp {
|
||||
string text = 1;
|
||||
string text = 1; // required
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user