Skip to content

Commit

Permalink
Added Contextual Tuples to Assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
smeadows-okta committed May 9, 2024
1 parent 2b164f5 commit 6876397
Show file tree
Hide file tree
Showing 7 changed files with 265 additions and 93 deletions.
145 changes: 140 additions & 5 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 @@ -112,6 +112,7 @@ message RelationshipCondition {
google.protobuf.Struct context = 2;
}


message TupleKeyWithoutCondition {
string user = 1 [
(google.api.field_behavior) = REQUIRED,
Expand Down
4 changes: 4 additions & 0 deletions openfga/v1/openfga_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1560,6 +1560,10 @@ message Assertion {
json_name = "expectation",
(google.api.field_behavior) = REQUIRED
];

openfga.v1.ContextualTupleKeys contextual_tuples = 3 [
json_name = "contextual_tuples"
];
}

message Assertions {
Expand Down
20 changes: 9 additions & 11 deletions proto/go.mod
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
module github.com/openfga/api/proto
module go.buf.build/openfga/go/openfga/api

go 1.21.3
go 1.22.2

require (
github.com/envoyproxy/protoc-gen-validate v1.0.2
github.com/envoyproxy/protoc-gen-validate v1.0.4
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1
google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe
google.golang.org/grpc v1.61.0
google.golang.org/protobuf v1.33.0
google.golang.org/genproto/googleapis/api v0.0.0-20240506185236-b8a5c65736ae
google.golang.org/grpc v1.63.2
google.golang.org/protobuf v1.34.1
)

require (
github.com/golang/protobuf v1.5.3 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240429193739-8cf5692501f6 // indirect
)
Loading

0 comments on commit 6876397

Please sign in to comment.