Skip to content

Commit

Permalink
Update CommandResponse in Abstractions.proto
Browse files Browse the repository at this point in the history
The command response type 'Ok' has been altered from string to google.protobuf.Any to allow for more flexible and versatile data handling. A new 'Identifier' message type is also introduced for streamlined identification of messages.
  • Loading branch information
AntonioFalcaoJr committed Nov 17, 2023
1 parent 620ea27 commit d547aef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Contracts/Abstractions/Abstractions.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ package Contracts.Abstractions.Protobuf;
import "google/protobuf/wrappers.proto";
import "google/protobuf/any.proto";

message Identifier {
string Id = 1;
}

message CommandResponse{
oneof OneOf{
string Ok = 1;
google.protobuf.Any Ok = 1;
Accepted Accepted = 2;
NotFound NotFound = 3;
NoContent NoContent = 4;
Expand Down

0 comments on commit d547aef

Please sign in to comment.