Skip to content

Commit ab52f5b

Browse files
author
Jeff Yanta
committed
profile: allow x social profile name and description to be empty
1 parent 18ca989 commit ab52f5b

File tree

5 files changed

+43
-45
lines changed

5 files changed

+43
-45
lines changed

generated/go/profile/v1/model.pb.go

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

generated/go/profile/v1/model.pb.validate.go

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

generated/protobuf-es/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
export * as Account from './account/v1';
2-
export * as Badge from './badge/v1';
31
export * as Chat from './chat/v1';
4-
export * as Common from './common/v1';
2+
export * as Promoted from './promoted/v1';
3+
export * as Push from './push/v1';
54
export * as Iap from './iap/v1';
6-
export * as Messaging from './messaging/v1';
7-
export * as Messaging from './messaging/v1';
5+
export * as Common from './common/v1';
86
export * as Profile from './profile/v1';
97
export * as Profile from './profile/v1';
10-
export * as Promoted from './promoted/v1';
11-
export * as Push from './push/v1';
8+
export * as Account from './account/v1';
9+
export * as Messaging from './messaging/v1';
10+
export * as Messaging from './messaging/v1';
11+
export * as Badge from './badge/v1';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from './model_pb';
21
export * from './profile_service_connect';
32
export * from './profile_service_pb';
3+
export * from './model_pb';

proto/profile/v1/model.proto

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ message XProfile {
4545

4646
// The user's friendly name on X
4747
string name = 3 [(validate.rules).string = {
48-
min_len: 1
4948
max_len: 256
5049
}];
5150

5251
// The user's description on X
5352
string description = 4 [(validate.rules).string = {
54-
min_len: 1
5553
max_len: 4096 // todo: arbitrary
5654
}];
5755

0 commit comments

Comments
 (0)