Skip to content

Commit

Permalink
refactor: modify WriteRequestWrites body (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-whit authored Nov 22, 2023
1 parent 7161d70 commit 7f9be45
Show file tree
Hide file tree
Showing 4 changed files with 1,803 additions and 2,148 deletions.
30 changes: 1 addition & 29 deletions docs/openapiv2/apidocs.swagger.json

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

39 changes: 1 addition & 38 deletions openfga/v1/openfga_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -861,45 +861,8 @@ message ReadResponse {
];
}

message WriteRequestTupleKey {
string user = 1 [
(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\""
}
];

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 object = 3 [
(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\""
}
];

RelationshipCondition condition = 4;
}

message WriteRequestWrites {
repeated WriteRequestTupleKey tuple_keys = 1 [
repeated TupleKey tuple_keys = 1 [
json_name = "tuple_keys",
(google.api.field_behavior) = REQUIRED,
(validate.rules).repeated.min_items = 1,
Expand Down
Loading

0 comments on commit 7f9be45

Please sign in to comment.