Skip to content

Commit

Permalink
feat: add ForbiddenResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
Vic-Dev committed Sep 4, 2024
1 parent a80adac commit 03ff31f
Show file tree
Hide file tree
Showing 4 changed files with 472 additions and 156 deletions.
117 changes: 117 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;
}
Loading

0 comments on commit 03ff31f

Please sign in to comment.