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

Commit 70f0a2c

Browse files
authored
Merge pull request #76 from gedorinku/remove_validation
Remove validation
2 parents 54e65c2 + 1db4afb commit 70f0a2c

7 files changed

+90
-102
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: 1 addition & 1 deletion
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ message UpdateUserProfileRequest {
117117
int32 grade = 3 [(validator.field) = {int_gt: 0, int_lt: 6}];
118118
bool left = 4;
119119
uint32 role_id = 5;
120-
string twitter_screen_name = 6 [(validator.field) = {regex: "^[A-Za-z0-9_]{0,15}$"}];
121-
string github_user_name = 7 [(validator.field) = {regex: "^([a-z\\d]+-)*[a-z\\d]+$", length_lt: 40}];
120+
string twitter_screen_name = 6 [(validator.field) = {length_lt: 128}];
121+
string github_user_name = 7 [(validator.field) = {length_lt: 128}];
122122
uint32 department_id = 8;
123123
ProfileScope profile_scope = 9 [(validator.field) = {is_in_enum : true}];
124-
string atcoder_user_name = 10 [(validator.field) = {regex: "^[a-zA-Z][a-zA-Z0-9_]{2,15}$"}];
124+
string atcoder_user_name = 10 [(validator.field) = {length_lt: 128}];
125125
string display_name = 11 [(validator.field) = {length_lt: 51}];
126126
}
127127

api/users.pb.go

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

0 commit comments

Comments
 (0)