Skip to content

Commit 03f03a3

Browse files
committed
Dedicated ErrorResponse
1 parent f204cca commit 03f03a3

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

schema/gamingplatform/api/common/v1/messaging.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ option go_package = "github.com/gaming-platform/api/go/common/v1;commonv1";
66
option php_namespace = "GamingPlatform\\Api\\Common\\V1";
77
option php_metadata_namespace = "GamingPlatform\\Api\\GPBMetadata\\Common\\V1";
88

9-
message Error {
9+
message ErrorResponse {
1010
message Violation {
1111
message Parameter {
1212
string name = 1;

schema/gamingplatform/api/identity/v1/messaging.proto

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ syntax = "proto3";
22

33
package gamingplatform.api.identity.v1;
44

5-
import "gamingplatform/api/common/v1/messaging.proto";
6-
75
option go_package = "github.com/gaming-platform/api/go/identity/v1;identityv1";
86
option php_namespace = "GamingPlatform\\Api\\Identity\\V1";
97
option php_metadata_namespace = "GamingPlatform\\Api\\GPBMetadata\\Identity\\V1";
@@ -23,17 +21,15 @@ message RegisterBot {
2321
}
2422

2523
message RegisterBotResponse {
26-
message Success {string bot_id = 1;}
27-
oneof result {Success success = 1; gamingplatform.api.common.v1.Error error = 2;}
24+
string bot_id = 1;
2825
}
2926

3027
message GetBotByUsername {
3128
string username = 1;
3229
}
3330

3431
message GetBotByUsernameResponse {
35-
message Success {Bot bot = 1;}
36-
oneof result {Success success = 1; gamingplatform.api.common.v1.Error error = 2;}
32+
Bot bot = 1;
3733
}
3834

3935
message Bot {

0 commit comments

Comments
 (0)