Skip to content

Commit 9403bab

Browse files
committed
fix: condition validation
1 parent c96ec77 commit 9403bab

File tree

4 files changed

+184
-184
lines changed

4 files changed

+184
-184
lines changed

docs/openapiv2/apidocs.swagger.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)