Skip to content

Commit

Permalink
Added Contextual Tuples to Assertions (#157)
Browse files Browse the repository at this point in the history
* Added Contextual Tuples to Assertions

* Added Contextual Tuples to Assertions
  • Loading branch information
smeadows-okta authored May 9, 2024
1 parent 2b164f5 commit 367d93b
Show file tree
Hide file tree
Showing 6 changed files with 125 additions and 88 deletions.
3 changes: 3 additions & 0 deletions docs/openapiv2/apidocs.swagger.json

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

2 changes: 2 additions & 0 deletions openfga/v1/openfga_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1560,6 +1560,8 @@ 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
)
37 changes: 14 additions & 23 deletions proto/go.sum

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

122 changes: 68 additions & 54 deletions proto/openfga/v1/openfga_service.pb.go

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

29 changes: 29 additions & 0 deletions proto/openfga/v1/openfga_service.pb.validate.go

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

0 comments on commit 367d93b

Please sign in to comment.