Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions raystack/frontier/v1beta1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ service AdminService {
message ListAllUsersRequest {
int32 page_size = 1 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE
int32: {gte: 1}
int32: {
gte: 1
lte: 5000
}
}];
int32 page_num = 2 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE
Expand Down Expand Up @@ -212,7 +215,10 @@ message ListAllOrganizationsRequest {
string state = 2;
int32 page_size = 3 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE
int32: {gte: 1}
int32: {
gte: 1
lte: 5000
}
}];
int32 page_num = 4 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE
Expand Down Expand Up @@ -395,7 +401,10 @@ message ListAllInvoicesRequest {
string org_id = 1;
int32 page_size = 2 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE
int32: {gte: 1}
int32: {
gte: 1
lte: 5000
}
}];
int32 page_num = 3 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE
Expand Down
15 changes: 12 additions & 3 deletions raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,10 @@ message UserRequestBody {
message ListUsersRequest {
int32 page_size = 1 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE
int32: {gte: 1}
int32: {
gte: 1
lte: 5000
}
}];
int32 page_num = 2 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE
Expand Down Expand Up @@ -1151,7 +1154,10 @@ message ListProjectsByCurrentUserRequest {

int32 page_size = 5 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE
int32: {gte: 1}
int32: {
gte: 1
lte: 5000
}
}];
int32 page_num = 6 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE
Expand Down Expand Up @@ -1556,7 +1562,10 @@ message ListOrganizationsRequest {
string state = 2;
int32 page_size = 3 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE
int32: {gte: 1}
int32: {
gte: 1
lte: 5000
}
}];
int32 page_num = 4 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE
Expand Down
2 changes: 1 addition & 1 deletion raystack/frontier/v1beta1/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ message RQLRequest {
repeated RQLFilter filters = 1;
repeated string group_by = 2;
uint32 offset = 3;
uint32 limit = 4;
uint32 limit = 4 [(buf.validate.field).uint32.lte = 5000];
string search = 5;
repeated RQLSort sort = 6;
}
Expand Down
Loading