Skip to content
Merged
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
12 changes: 7 additions & 5 deletions proto/shared/shared.data_type.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,15 @@ message DefinitionDataType {
repeated Translation name = 3;
// Rules of the data type (e.g. Regex, contains...)
repeated DefinitionDataTypeRule rules = 4;
// Optional identifier it the given data type is a child of another
optional DataTypeIdentifier parent_type = 5;
// List of generic keys
repeated string generic_keys = 6;
repeated string generic_keys = 5;
}

message ExecutionDataType {
// Unique identifier of the data type
string identifier = 1;
// Rules of the data type (e.g. Regex, contains...)
repeated ExecutionDataTypeRule rules = 2;
// Optional identifier it the given data type is a child of another
optional string parent_type = 3;
}

message DefinitionDataTypeRule {
Expand All @@ -54,6 +50,7 @@ message DefinitionDataTypeRule {
DataTypeRegexRuleConfig regex = 5;
DefinitionDataTypeInputTypesRuleConfig input_types = 6;
DefinitionDataTypeReturnTypeRuleConfig return_type = 7;
DefinitionDataTypeParentTypeRuleConfig parent_type = 8;
}
}

Expand All @@ -67,6 +64,11 @@ message ExecutionDataTypeRule {
}
}

// Rule for defining the data type parent type
message DefinitionDataTypeParentTypeRuleConfig {
DataTypeIdentifier parent_type = 1;
}

// Rule to check that the given key is contained in the given object
message DefinitionDataTypeContainsKeyRuleConfig {
string key = 1;
Expand Down