forked from JetBrains/banner-rotator-webpack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
banners.schema.json
56 lines (56 loc) · 1.23 KB
/
banners.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Banner rotator config schema",
"type": "array",
"items": {
"$ref": "#/definitions/banner"
},
"definitions": {
"banner": {
"type": "object",
"required": ["entry"],
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"entry": {
"type": "string"
},
"startDate": {
"type": "string",
"pattern": "^\d{4}-\d{2}-\d{2}(\s\d{2}:\d{2})?$"
},
"end": {
"type": "string",
"pattern": "^\d{4}-\d{2}-\d{2}(\s\d{2}:\d{2})?$"
},
"locations": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true
},
"countries": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true
},
"data": {
"type": ["string", "array", "object", "number"]
},
"disabled": {
"type": ["boolean"]
}
}
}
}
}