Skip to content

Commit

Permalink
Merge branch 'main' into contextual-tuples-expand-api
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari authored Oct 16, 2024
2 parents af11c9d + 63b9cf9 commit be89aa5
Show file tree
Hide file tree
Showing 6 changed files with 538 additions and 194 deletions.
132 changes: 132 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.

8 changes: 8 additions & 0 deletions openfga/v1/errors_ignore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ enum AuthErrorCode {
bearer_token_missing = 1010;

unauthenticated = 1500;

forbidden = 1600;
}

enum ErrorCode {
Expand Down Expand Up @@ -141,3 +143,9 @@ message AbortedMessageResponse {
}

message ErrorMessageRequest {}

message ForbiddenResponse {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {example: "{\"code\":\"forbidden\", \"message\":\"the principal is not authorized to perform the action\"}"};
AuthErrorCode code = 1;
string message = 2;
}
9 changes: 9 additions & 0 deletions openfga/v1/openapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
}
}
}
responses: {
key: "403"
value: {
description: "Forbidden."
schema: {
json_schema: {ref: ".openfga.v1.ForbiddenResponse"}
}
}
}
responses: {
key: "404"
value: {
Expand Down
Loading

0 comments on commit be89aa5

Please sign in to comment.