Skip to content

Commit

Permalink
fix: condition validation
Browse files Browse the repository at this point in the history
  • Loading branch information
d-jeffery committed Aug 15, 2024
1 parent c96ec77 commit 9403bab
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 184 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.

4 changes: 2 additions & 2 deletions openfga/v1/openfga.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
}
];
Expand Down
Loading

0 comments on commit 9403bab

Please sign in to comment.