Skip to content

Commit

Permalink
fix: maximum number of contextual tuples for ListUsersRequest (#166)
Browse files Browse the repository at this point in the history
Adding 20 contextual tuple maximum to listusers req
  • Loading branch information
willvedd authored May 28, 2024
1 parent 591c8fa commit 03aaac2
Show file tree
Hide file tree
Showing 4 changed files with 2,069 additions and 2,051 deletions.
3 changes: 2 additions & 1 deletion docs/openapiv2/apidocs.swagger.json

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

6 changes: 5 additions & 1 deletion openfga/v1/openfga_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,11 @@ message ListUsersRequest {
}
];

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

// Additional request context that will be used to evaluate any ABAC conditions encountered
// in the query evaluation.
Expand Down
Loading

0 comments on commit 03aaac2

Please sign in to comment.