-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.json
53 lines (53 loc) · 1.53 KB
/
base.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
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://asserest.github.io/schema/base.json",
"description": "Shared base layout of Asserest configuration file",
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "An URL address for testing can be access or not.",
"format": "uri"
},
"accessible": {
"type": "boolean",
"description": "Determine this URL can be access or not (after all redirection have been resolved).",
"default": true
},
"timeout": {
"type": "integer",
"description": "Determine when this URL assume as inaccessible in seconds later.",
"minimum": 10,
"multipleOf": 5,
"default": 10
}
},
"allOf": [
{
"if": {
"properties": {
"accessible": {
"const": true
}
}
},
"then": {
"properties": {
"try_count": {
"type": "integer",
"description": "Count of assertion until this URL can be fetched.",
"minimum": 1,
"default": 1
}
},
"required": [
"try_count"
]
}
}
],
"required": [
"url",
"accessible"
]
}