Skip to content

Commit

Permalink
Add required constraints
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Marcantonio <[email protected]>
  • Loading branch information
lennysgarage committed Jun 17, 2024
1 parent 6b5b640 commit 82f3b91
Show file tree
Hide file tree
Showing 9 changed files with 292 additions and 330 deletions.
74 changes: 39 additions & 35 deletions api/relations/v0/check.pb.go

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

85 changes: 33 additions & 52 deletions api/relations/v0/check.pb.validate.go

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

8 changes: 5 additions & 3 deletions api/relations/v0/check.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ package kessel.relations.v0;

import "google/api/annotations.proto";
import "relations/v0/common.proto";
import "validate/validate.proto";


option go_package = "ciam-rebac/api/relations/v0;v0";
option java_multiple_files = true;
Expand All @@ -21,9 +23,9 @@ service KesselCheckService {
}

message CheckRequest {
ObjectReference resource = 1;
string relation = 2;
SubjectReference subject = 3;
ObjectReference resource = 1 [(validate.rules).any.required = true];
string relation = 2 [(validate.rules).string.min_len = 1];
SubjectReference subject = 3 [(validate.rules).any.required = true];
}

message CheckResponse {
Expand Down
81 changes: 42 additions & 39 deletions api/relations/v0/common.pb.go

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

Loading

0 comments on commit 82f3b91

Please sign in to comment.