Skip to content

Commit

Permalink
chore: update deps and some docs (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari authored May 1, 2024
1 parent 3605041 commit 2b164f5
Show file tree
Hide file tree
Showing 13 changed files with 1,644 additions and 1,386 deletions.
8 changes: 4 additions & 4 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ managed:
- buf.build/envoyproxy/protoc-gen-validate
- buf.build/grpc-ecosystem/grpc-gateway
plugins:
- plugin: buf.build/protocolbuffers/go:v1.28.1
- plugin: buf.build/protocolbuffers/go:v1.34.0
out: proto/
opt:
- paths=source_relative
- plugin: buf.build/grpc/go:v1.3.0
out: proto/
opt:
- paths=source_relative
- plugin: buf.build/bufbuild/validate-go:v0.10.1
- plugin: buf.build/bufbuild/validate-go:v1.0.4
out: proto/
opt:
- paths=source_relative
- plugin: buf.build/grpc-ecosystem/gateway:v2.15.0
- plugin: buf.build/grpc-ecosystem/gateway:v2.19.1
out: proto/
opt:
- paths=source_relative
- logtostderr=true
- plugin: buf.build/grpc-ecosystem/openapiv2:v2.15.0
- plugin: buf.build/grpc-ecosystem/openapiv2:v2.16.0
out: docs/openapiv2
opt:
- openapi_naming_strategy=simple
Expand Down
12 changes: 6 additions & 6 deletions buf.lock

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

146 changes: 142 additions & 4 deletions docs/openapiv2/apidocs.swagger.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions openfga/v1/errors_ignore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ message ValidationErrorMessageResponse {
string message = 2;
}

message UnauthenticatedResponse {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {example: "{\"code\":\"unauthenticated\", \"message\":\"unauthenticated\"}"};
ErrorCode code = 1;
string message = 2;
}

message UnprocessableContentMessageResponse {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {example: "{\"code\":\"throttled_timeout_error\", \"message\":\"timeout due to throttling on complex request\"}"};
UnprocessableContentErrorCode code = 1;
Expand Down
11 changes: 10 additions & 1 deletion openfga/v1/openapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "OpenFGA";
description: "A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.";
version: "0.1";
version: "1.x";
contact: {
name: "OpenFGA";
email: "[email protected]";
Expand All @@ -31,6 +31,15 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
}
}
}
responses: {
key: "401"
value: {
description: "Not authenticated."
schema: {
json_schema: {ref: ".openfga.v1.UnauthenticatedResponse"}
}
}
}
responses: {
key: "404"
value: {
Expand Down
8 changes: 4 additions & 4 deletions openfga/v1/openfga_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ service OpenFGAService {
"}\n"
"```\n"
"will always return `{ \"allowed\": true }`. This is because usersets are self-defining: the userset `document:2021-budget#reader` will always have the `reader` relation with `document:2021-budget`.\n"
"### Querying usersets with exclusion in the model\n"
"A Check for a userset can yield results that must be treated carefully if the model involves exclusion. For example, for the following authorization model\n"
"### Querying usersets with difference in the model\n"
"A Check for a userset can yield results that must be treated carefully if the model involves difference. For example, for the following authorization model\n"
"```python\n"
"model\n"
" schema 1.1\n"
Expand Down Expand Up @@ -708,7 +708,7 @@ service OpenFGAService {
};

option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "[EXPERIMENTAL] Stream all objects of the given type that the user has a relation with"
summary: "Stream all objects of the given type that the user has a relation with"
tags: ["Relationship Queries"]
operation_id: "StreamedListObjects"
description:
Expand Down Expand Up @@ -751,7 +751,7 @@ service OpenFGAService {
};

option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "List the users matching the provided filter who have a certain relation to a particular type."
summary: "[EXPERIMENTAL] List the users matching the provided filter who have a certain relation to a particular type."
tags: ["Relationship Queries"]
operation_id: "ListUsers"
description:
Expand Down
2 changes: 1 addition & 1 deletion proto/openfga/v1/authzmodel.pb.go

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

Loading

0 comments on commit 2b164f5

Please sign in to comment.