Skip to content

Commit

Permalink
Merge pull request #25 from code0-tech/update-custom-datatype-messages
Browse files Browse the repository at this point in the history
Update custom datatype messages
  • Loading branch information
Taucher2003 authored Dec 28, 2024
2 parents b58761f + b8c4e6c commit 12e1444
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions proto/shared/datatype_definition.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
import "google/protobuf/any.proto";
import "google/protobuf/struct.proto";
import "translations.proto";

option ruby_package = "Tucana::Shared";
Expand All @@ -19,11 +19,12 @@ message DataType {
}

Variant variant = 1;
repeated Translation name = 2;
repeated DataTypeRule rules = 3;
repeated DataType input_types = 4;
optional DataType return_type = 5;
optional DataType parent_type = 6;
string identifier = 2;
repeated Translation name = 3;
repeated DataTypeRule rules = 4;
repeated DataType input_types = 5;
optional DataType return_type = 6;
optional DataType parent_type = 7;
}

message DataTypeRule {
Expand All @@ -37,5 +38,5 @@ message DataTypeRule {
}

Variant variant = 1;
map<string, google.protobuf.Any> config = 2;
google.protobuf.Struct config = 2;
}
2 changes: 1 addition & 1 deletion proto/shared/translations.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ package shared;

message Translation {
string code = 1;
string text = 2;
string content = 2;
}

0 comments on commit 12e1444

Please sign in to comment.