Skip to content

Commit 4ba8caa

Browse files
committed
fix: condition validation
1 parent c96ec77 commit 4ba8caa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openfga/v1/openfga.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ message RelationshipCondition {
8989
// A reference (by name) of the relationship condition defined in the authorization model.
9090
string name = 1 [
9191
(validate.rules).string = {
92-
pattern: "^[^\\s]{2,256}$"
92+
pattern: "^[^\\s]{1,50}$"
9393
ignore_empty: false
9494
},
9595
(google.api.field_behavior) = REQUIRED,
9696
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
97-
max_length: 256
97+
max_length: 50
9898
example: "\"condition1\""
9999
}
100100
];

0 commit comments

Comments
 (0)