Skip to content

Commit

Permalink
fix: validate condition in type restriction (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla authored Dec 8, 2023
1 parent ed3d38b commit 766fd25
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 123 deletions.
2 changes: 1 addition & 1 deletion openfga/v1/authzmodel.proto
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ 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}$"}];
}

message Wildcard {}
Expand Down
Loading

0 comments on commit 766fd25

Please sign in to comment.