Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update custom datatype messages #25

Merged
merged 1 commit into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
Loading