-
Notifications
You must be signed in to change notification settings - Fork 5
/
schema.json
75 lines (75 loc) · 2.3 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"fields": [
{
"name": "start",
"constraints": {
"required": true,
"type": "http://www.w3.org/2001/XMLSchema#string",
"pattern": "\\A\\d{4}(((-(1[0-2]|0[1-9]))?)|(-(1[0-2]|0[1-9]))-(3[01]|[12][0-9]|0[1-9]))\\z"
}
},
{
"name": "end",
"constraints": {
"type": "http://www.w3.org/2001/XMLSchema#string",
"pattern": "(\\A\\d{4}(((-(1[0-2]|0[1-9]))?)|(-(1[0-2]|0[1-9]))-(3[01]|[12][0-9]|0[1-9]))\\z)?"
}
},
{
"name": "title",
"constraints": {
"required": true,
"type": "http://www.w3.org/2001/XMLSchema#string"
}
},
{
"name": "description",
"constraints": {
"required": true,
"type": "http://www.w3.org/2001/XMLSchema#string"
}
},
{
"name": "eventType",
"constraints": {
"required": true,
"type": "http://www.w3.org/2001/XMLSchema#string",
"pattern": "release|vulnerability|milestone|other|/i"
}
},
{
"name": "eventImportance",
"constraints": {
"required": true,
"type": "http://www.w3.org/2001/XMLSchema#string",
"pattern": "note|low|medium|high|critical|/i"
}
},
{
"name": "referenceURI",
"constraints": {
"required": true,
"type": "http://www.w3.org/2001/XMLSchema#anyURI"
}
},
{
"name": "imageURI",
"constraints": {
"type": "http://www.w3.org/2001/XMLSchema#anyURI"
}
},
{
"name": "mediaURIs",
"constraints": {
"type": "http://www.w3.org/2001/XMLSchema#string"
}
},
{
"name": "tags",
"constraints": {
"type": "http://www.w3.org/2001/XMLSchema#string",
"pattern": "((\"[^\"]*\"|\\w[^\"(,|\n)]*),*)*"
}
}
]
}