Skip to content

Commit

Permalink
fix: condition validation
Browse files Browse the repository at this point in the history
  • Loading branch information
d-jeffery committed Aug 15, 2024
1 parent c96ec77 commit 4ba8caa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openfga/v1/openfga.proto
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ message RelationshipCondition {
// A reference (by name) of the relationship condition defined in the authorization model.
string name = 1 [
(validate.rules).string = {
pattern: "^[^\\s]{2,256}$"
pattern: "^[^\\s]{1,50}$"
ignore_empty: false
},
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
max_length: 256
max_length: 50
example: "\"condition1\""
}
];
Expand Down

0 comments on commit 4ba8caa

Please sign in to comment.