Skip to content

Commit

Permalink
fix: set condition name to be condition_name in json
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh committed Oct 3, 2023
1 parent dba5895 commit 8def830
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 143 deletions.
4 changes: 2 additions & 2 deletions docs/openapiv2/apidocs.swagger.json

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

1 change: 1 addition & 0 deletions openfga/v1/openfga.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ message Object {
message RelationshipCondition {
// A reference (by name) of the relationship condition defined in the authorization model.
string condition_name = 1 [
json_name = "condition_name",
(validate.rules).string = {pattern: "^[^\\s]{2,256}$"},
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
Expand Down
Loading

0 comments on commit 8def830

Please sign in to comment.