Skip to content

Commit

Permalink
feat: bump max count of contextual tuples to 100 (#208)
Browse files Browse the repository at this point in the history
Max contextual count in assertions will remain at 20 for now
  • Loading branch information
rhamzeh authored Oct 23, 2024
1 parent 297cfdb commit 3047760
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions docs/openapiv2/apidocs.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions openfga/v1/openfga.proto
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ message ContextualTupleKeys {
repeated TupleKey tuple_keys = 1 [
json_name = "tuple_keys",
(google.api.field_behavior) = REQUIRED,
(validate.rules).repeated.max_items = 20,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {max_items: 20}
(validate.rules).repeated.max_items = 100,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {max_items: 100}
];
}

Expand Down
6 changes: 3 additions & 3 deletions openfga/v1/openfga_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,8 @@ message ListUsersRequest {

repeated TupleKey contextual_tuples = 6 [
json_name = "contextual_tuples",
(validate.rules).repeated.max_items = 20,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {max_items: 20}
(validate.rules).repeated.max_items = 100,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {max_items: 100}
];

// Additional request context that will be used to evaluate any ABAC conditions encountered
Expand Down Expand Up @@ -1598,7 +1598,7 @@ message Assertion {

repeated TupleKey contextual_tuples = 3 [
json_name = "contextual_tuples",
(validate.rules).repeated.max_items = 20,
(validate.rules).repeated.max_items = 20, // This is not a typo, we intentionally restrict contextual tuples in assertions to 20 for now
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {max_items: 20}
];

Expand Down
4 changes: 2 additions & 2 deletions proto/openfga/v1/openfga.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions proto/openfga/v1/openfga.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/openfga/v1/openfga_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions proto/openfga/v1/openfga_service.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3047760

Please sign in to comment.