From b8c4e6c7df47f278d086ee898142bc0aad00b994 Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Sat, 28 Dec 2024 01:12:18 +0100 Subject: [PATCH] Update custom datatype messages --- proto/shared/datatype_definition.proto | 15 ++++++++------- proto/shared/translations.proto | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/proto/shared/datatype_definition.proto b/proto/shared/datatype_definition.proto index a9b1805..f6d336d 100644 --- a/proto/shared/datatype_definition.proto +++ b/proto/shared/datatype_definition.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -import "google/protobuf/any.proto"; +import "google/protobuf/struct.proto"; import "translations.proto"; option ruby_package = "Tucana::Shared"; @@ -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 { @@ -37,5 +38,5 @@ message DataTypeRule { } Variant variant = 1; - map config = 2; + google.protobuf.Struct config = 2; } diff --git a/proto/shared/translations.proto b/proto/shared/translations.proto index 11daf6c..973f43f 100644 --- a/proto/shared/translations.proto +++ b/proto/shared/translations.proto @@ -6,5 +6,5 @@ package shared; message Translation { string code = 1; - string text = 2; + string content = 2; }