From 4ba8caa627d60910b308cdd14ba2420ff60e5938 Mon Sep 17 00:00:00 2001 From: Daniel Jeffery Date: Thu, 15 Aug 2024 13:12:53 -0700 Subject: [PATCH] fix: condition validation --- openfga/v1/openfga.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openfga/v1/openfga.proto b/openfga/v1/openfga.proto index 0180fb4e..c696367a 100644 --- a/openfga/v1/openfga.proto +++ b/openfga/v1/openfga.proto @@ -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\"" } ];