Skip to content

Commit a260358

Browse files
Merge pull request #140 from code0-tech/139-adjust-ref-object
Adjust ReferenceValue
2 parents bba493d + 95600ea commit a260358

File tree

1 file changed

+3
-78
lines changed

1 file changed

+3
-78
lines changed

proto/shared/shared.flow.proto

Lines changed: 3 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -62,84 +62,9 @@ message NodeParameter {
6262
}
6363

6464
message ReferenceValue {
65-
/*
66-
{primary}:{secondary}:{tertiary}
67-
68-
0:0 0:1 0:2 0:3
69-
Node1 -> Node2 -> Node3 -> Node4
70-
71-
all executed after each other (horizontal):
72-
- Secondary level
73-
74-
0:1 0:1:0
75-
Node2(NodeA):
76-
77-
1:0 1:0:0 1:0:1 1:1
78-
NodeA(NodeX, b) -> NodeB
79-
80-
2:0 2:0:0
81-
NodeX( x )
82-
83-
Vertical -> primary level
84-
85-
tertiary level is optional and references parameter in a node
86-
{vertical}:{horizontal}:{parameter}
87-
*/
88-
int32 primary_level = 1;
89-
int32 secondary_level = 2;
90-
optional int32 tertiary_level = 3;
91-
92-
/*
93-
User:
94-
name: string
95-
email: string
96-
housing_locations: Array[Location]
97-
98-
Location:
99-
street: string
100-
number: integer
101-
102-
0:1
103-
Node2:
104-
1:0 1:0:0
105-
NodeA(user)
106-
107-
user is the reference 1:0:0
108-
109-
To reference fields in the referenced object we use reference paths.
110-
111-
To reference the email:
112-
113-
{
114-
"primary_level": 1,
115-
"secondary_level": 0,
116-
"tertiary_level": 0,
117-
paths: [
118-
{
119-
"path": ".email",
120-
}
121-
]
122-
}
123-
124-
----
125-
126-
To reference the first street:
127-
128-
{
129-
"primary_level": 1,
130-
"secondary_level": 0,
131-
"tertiary_level": 0,
132-
paths: [
133-
{
134-
"path": ".housing_locations",
135-
"array_index": 0
136-
},
137-
{
138-
"path": ".street"
139-
}
140-
]
141-
}
142-
*/
65+
int32 depth = 1;
66+
repeated int32 scope = 2;
67+
int32 node = 3;
14368
repeated ReferencePath paths = 4;
14469
}
14570

0 commit comments

Comments
 (0)