forked from Perl-Toolchain-Gang/cpansa-feed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
50 lines (50 loc) · 1.25 KB
/
schema.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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://hackeriet.github.io/cpansa-feed/v1/schema.json",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^[A-Za-z0-9]+$": {
"description": "distribution name to an array of report data",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["affected_versions", "cpansa_id"],
"properties": {
"affected_versions": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"cves": {
"type": "array",
"items": {
"description": "CVE id",
"type": "string"
}
},
"description": {
"type": "string"
},
"references": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
},
"reported": {
"type": "string",
"format": "date"
},
"severity": {
"enum": ["minor", "medium", "moderate", "high", "critical"]
}
}
}
}
}
}