Skip to content

Commit f45ef94

Browse files
committed
fix linter errors
1 parent 1e94609 commit f45ef94

File tree

4 files changed

+58
-50
lines changed

4 files changed

+58
-50
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ test/app/bin
33
.vscode
44
client
55
venv
6+
*.lint

test/app/api/hello.pb.go

Lines changed: 50 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/app/api/hello.proto

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
syntax = "proto3";
1616

1717
import "google/api/annotations.proto";
18+
import "google/api/field_behavior.proto";
1819

1920
package hello.v1;
2021

@@ -49,7 +50,7 @@ service HelloIdentity {
4950
// The request message containing the user's name.
5051
message HelloGreeterSayHelloRequest {
5152
// Name to say hello to
52-
string name = 1;
53+
string name = 1 [(google.api.field_behavior) = REQUIRED];
5354
}
5455

5556
// The response message containing the greetings
@@ -103,4 +104,4 @@ message HelloVersion {
103104
// String representation of the version. Must be
104105
// in `major.minor.patch` format.
105106
string version = 4;
106-
}
107+
}

test/app/api/hello.swagger.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@
124124
"title": "Name to say hello to"
125125
}
126126
},
127-
"description": "The request message containing the user's name."
127+
"description": "The request message containing the user's name.",
128+
"required": [
129+
"name"
130+
]
128131
},
129132
"v1HelloGreeterSayHelloResponse": {
130133
"type": "object",

0 commit comments

Comments
 (0)