-
Notifications
You must be signed in to change notification settings - Fork 7
/
GraphObject.json
55 lines (55 loc) · 1.72 KB
/
GraphObject.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "#GraphObject",
"description": "Standard metadata properties of a graph object, maintained by the system. These are visible to users but may not be directly modified.",
"type": "object",
"propertyNames": {
"pattern": "^(_|tag\\.)?[A-Za-z0-9. -]+$"
},
"properties": {
"_key": {
"description": "An identifier unique within the scope containing the object. For example, for a Bitbucket repo, this will be the GUID of the repo as assigned by Bitbucket. For an IAM Role, this will be the ARN of the role.",
"type": "string",
"minLength": 10
},
"_class": {
"description": "One or more classes conforming to a standard, abstract security data model. For example, an EC2 instance will have '_class':'Host'.",
"oneOf": [
{
"type": "string",
"minLength": 2
},
{
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"minLength": 2
}
}
]
},
"_type": {
"description": "The type of object, typically reflecting the vendor and resource type. For example, 'aws_iam_user'. In some cases, a system knows about a type of entity that other systems know about, such as 'user_endpoint' or 'cve'.",
"type": "string",
"minLength": 3
}
},
"patternProperties": {
"^tag\\.": {
"description": "Named tags assigned to the entity (i.e., 'tag.Name', 'tag.OtherName')",
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"required": ["_key", "_class", "_type"]
}