Skip to content

Commit

Permalink
fix: require model_id in ReadAuthModel (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari authored Dec 22, 2023
1 parent e6e8953 commit 3037910
Show file tree
Hide file tree
Showing 3 changed files with 1,498 additions and 1,487 deletions.
7 changes: 6 additions & 1 deletion openfga/v1/openfga_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,12 @@ message ReadAuthorizationModelRequest {
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "\"01YCP46JKYM8FJCQ37NMBYHE5X\""}
];

string id = 2 [(validate.rules).string.max_len = 26];
string id = 2 [
json_name = "id",
(google.api.field_behavior) = REQUIRED,
(validate.rules).string = {pattern: "^[ABCDEFGHJKMNPQRSTVWXYZ0-9]{26}$"},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "\"01G5JAVJ41T49E9TT3SKVS7X1J\""}
];
}

message ReadAuthorizationModelResponse {
Expand Down
Loading

0 comments on commit 3037910

Please sign in to comment.