Skip to content

Commit eb822c2

Browse files
erezh31meirwah
authored andcommitted
add connections to canvas suggestions (#1729)
* add connections to canvas suggestions * fix schema validation
1 parent a351599 commit eb822c2

File tree

2 files changed

+66
-18
lines changed

2 files changed

+66
-18
lines changed
Lines changed: 63 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,79 @@
11
{
22
"canvasContextConnections": [
33
{
4-
"contextKey1": "File.MD5",
5-
"contextKey2": "File.SHA256",
6-
"connectionDescription": "Belongs to the same file"
4+
"contextKey1": "MD5",
5+
"contextKey2": "SHA256",
6+
"connectionDescription": "Belongs to the same file",
7+
"parentContextKey": "File"
78
},
89
{
9-
"contextKey1": "File.MD5",
10-
"contextKey2": "File.SHA1",
11-
"connectionDescription": "Belongs to the same file"
10+
"contextKey1": "MD5",
11+
"contextKey2": "SHA1",
12+
"connectionDescription": "Belongs to the same file",
13+
"parentContextKey": "File"
1214
},
1315
{
14-
"contextKey1": "File.SHA1",
15-
"contextKey2": "File.SHA256",
16-
"connectionDescription": "Belongs to the same file"
16+
"contextKey1": "SHA1",
17+
"contextKey2": "SHA256",
18+
"connectionDescription": "Belongs to the same file",
19+
"parentContextKey": "File"
1720
},
1821
{
19-
"contextKey1": "File.SSDeep",
20-
"contextKey2": "File.SHA256",
21-
"connectionDescription": "Belongs to the same file"
22+
"contextKey1": "SSDeep",
23+
"contextKey2": "SHA256",
24+
"connectionDescription": "Belongs to the same file",
25+
"parentContextKey": "File"
2226
},
2327
{
24-
"contextKey1": "File.SSDeep",
25-
"contextKey2": "File.SHA1",
26-
"connectionDescription": "Belongs to the same file"
28+
"contextKey1": "SSDeep",
29+
"contextKey2": "SHA1",
30+
"connectionDescription": "Belongs to the same file",
31+
"parentContextKey": "File"
2732
},
2833
{
29-
"contextKey1": "File.SSDeep",
30-
"contextKey2": "File.MD5",
31-
"connectionDescription": "Belongs to the same file"
34+
"contextKey1": "SSDeep",
35+
"contextKey2": "MD5",
36+
"connectionDescription": "Belongs to the same file",
37+
"parentContextKey": "File"
38+
},
39+
40+
{
41+
"contextKey1": "Username",
42+
"contextKey2": "Email.Address",
43+
"connectionDescription": "User's email address",
44+
"parentContextKey": "Account"
45+
},
46+
{
47+
"contextKey1": "Username",
48+
"contextKey2": "Domain",
49+
"connectionDescription": "User's domain",
50+
"parentContextKey": "Account"
51+
},
52+
{
53+
"contextKey1": "Email.Domain",
54+
"contextKey2": "Email.Address",
55+
"connectionDescription": "Email's domain",
56+
"parentContextKey": "Account"
57+
},
58+
59+
{
60+
"contextKey1": "Hostname",
61+
"contextKey2": "IP",
62+
"connectionDescription": "Belongs to the same endpoint",
63+
"parentContextKey": "Endpoint"
64+
},
65+
{
66+
"contextKey1": "Hostname",
67+
"contextKey2": "MAC",
68+
"connectionDescription": "Belongs to the same endpoint",
69+
"parentContextKey": "Endpoint"
70+
},
71+
{
72+
"contextKey1": "MAC",
73+
"contextKey2": "IP",
74+
"connectionDescription": "Belongs to the same endpoint",
75+
"parentContextKey": "Endpoint"
3276
}
77+
3378
]
3479
}

Tests/schemas/canvas-context-connections.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@ schema;canvas_context_conncetion:
1919
type: str
2020
required: yes
2121
connectionDescription:
22+
type: str
23+
required: yes
24+
parentContextKey:
2225
type: str
2326
required: yes

0 commit comments

Comments
 (0)