Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 0a4379d

Browse files
committed
Add validation
1 parent 77e8dba commit 0a4379d

7 files changed

+90
-87
lines changed

api/achievements.validator.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/contribution_conllections.validator.pb.go

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

api/entries.validator.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/oauth.validator.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/protos/users.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ message ListUsersRequest {
9292
uint32 page_token = 1;
9393
int32 page_size = 2;
9494
reserved 3;
95-
string query = 4;
95+
string query = 4 [(validator.field) = {length_lt: 128}];
9696
}
9797

9898
message ListUsersResponse {

api/users.pb.go

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

api/users.validator.pb.go

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)