Skip to content

Commit

Permalink
fix: revert assertions tuple key order change (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla authored Dec 7, 2023
1 parent 7ad5c05 commit ed3d38b
Show file tree
Hide file tree
Showing 4 changed files with 1,489 additions and 1,192 deletions.
29 changes: 27 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.

37 changes: 36 additions & 1 deletion openfga/v1/openfga_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1354,8 +1354,43 @@ message ListStoresResponse {
];
}

message AssertionTupleKey {
string object = 1 [
(google.api.field_behavior) = REQUIRED,
(validate.rules).string = {
pattern: "^[^\\s]{2,256}$",
ignore_empty: true
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
max_length: 256,
example: "\"document:2021-budget\""
}
];

string relation = 2 [
(google.api.field_behavior) = REQUIRED,
(validate.rules).string = {
pattern: "^[^:#@\\s]{1,50}$",
ignore_empty: true
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
max_length: 50,
example: "\"reader\""
}
];

string user = 3 [
(google.api.field_behavior) = REQUIRED,
(validate.rules).string = {max_bytes: 512},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
max_length: 512,
example: "\"user:anne\""
}
];
}

message Assertion {
CheckRequestTupleKey tuple_key = 1 [
AssertionTupleKey tuple_key = 1 [
(validate.rules).message.required = true,
json_name = "tuple_key",
(google.api.field_behavior) = REQUIRED
Expand Down
Loading

0 comments on commit ed3d38b

Please sign in to comment.