Skip to content

Commit

Permalink
fix: validate condition in type restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Dec 8, 2023
1 parent ed3d38b commit 035d6a4
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 124 deletions.
5 changes: 4 additions & 1 deletion openfga/v1/authzmodel.proto
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ message RelationReference {
}

// The name of a condition that is enforced over the allowed relation.
string condition = 4;
string condition = 4 [(validate.rules).string = {
pattern: "^[^:#@\\s]{1,50}$",
ignore_empty: true
}];
}

message Wildcard {}
Expand Down
Loading

0 comments on commit 035d6a4

Please sign in to comment.