File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ pub mod shared {
19
19
r#type : "no" . to_string ( ) ,
20
20
settings : vec ! [ ] ,
21
21
starting_node_id : 0 ,
22
- node_functions : None ,
22
+ node_functions : vec ! [ ] ,
23
23
} ;
24
24
25
25
let str_flow = serde_json:: to_string ( & flow) . expect ( "Serialization failed" ) ;
@@ -35,7 +35,7 @@ pub mod shared {
35
35
"data_types" : [ ] ,
36
36
"settings" : [ ] ,
37
37
"starting_node_id" : 0 ,
38
- "node_functions" : null
38
+ "node_functions" : [ ]
39
39
} ) ;
40
40
41
41
assert_eq ! ( json_flow, expected_json) ;
@@ -52,7 +52,7 @@ pub mod shared {
52
52
"data_types": [],
53
53
"settings": [],
54
54
"starting_node_id": 0,
55
- "node_functions": null
55
+ "node_functions": []
56
56
}"# ;
57
57
58
58
let deserialized: Result < ValidationFlow , _ > = serde_json:: from_str ( json_data) ;
@@ -67,7 +67,7 @@ pub mod shared {
67
67
input_type_identifier : None ,
68
68
return_type_identifier : None ,
69
69
starting_node_id : 0 ,
70
- node_functions : None ,
70
+ node_functions : vec ! [ ] ,
71
71
} ;
72
72
73
73
assert_eq ! ( deserialized. unwrap( ) , expected_flow) ;
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ message ValidationFlow {
20
20
optional string return_type_identifier = 6 ;
21
21
repeated FlowSetting settings = 7 ;
22
22
int64 starting_node_id = 8 ;
23
- NodeFunctions node_functions = 9 ;
23
+ repeated NodeFunction node_functions = 9 ;
24
24
}
25
25
26
26
message ExecutionFlow {
27
27
// Database ID -> req. for Aquila to identify in FlowStore
28
28
int64 flow_id = 1 ;
29
29
int64 starting_node_id = 2 ;
30
- NodeFunctions node_functions = 4 ;
30
+ repeated NodeFunction node_functions = 4 ;
31
31
optional shared.Value input_value = 3 ;
32
32
}
33
33
@@ -46,10 +46,6 @@ message NodeFunction {
46
46
optional int64 next_node_id = 4 ;
47
47
}
48
48
49
- message NodeFunctions {
50
- repeated NodeFunction functions = 1 ;
51
- }
52
-
53
49
message NodeValue {
54
50
oneof value {
55
51
shared.Value literal_value = 1 ;
You can’t perform that action at this time.
0 commit comments