Skip to content

Commit

Permalink
chore: ignore empty condition in type restriction definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-whit committed Dec 8, 2023
1 parent 766fd25 commit 6b3323f
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 130 deletions.
2 changes: 1 addition & 1 deletion docs/openapiv2/apidocs.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 [(validate.rules).string = {pattern: "^[^:#@\\s]{1,50}$"}];
string condition = 4 [(validate.rules).string = {
pattern: "^[^:#@\\s]{1,50}$",
ignore_empty: true
}];
}

message Wildcard {}
Expand Down
Loading

0 comments on commit 6b3323f

Please sign in to comment.