-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
storage-schema.json
48 lines (48 loc) · 1.37 KB
/
storage-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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/dguo/pawblock/blob/main/storage-schema.json",
"description": "Schema for PawBlock's browser storage state",
"type": "object",
"properties": {
"on": {
"description": "Whether or not the rules should be applied",
"type": "boolean"
},
"rules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"domain": {"type": "string"},
"path": {"type": "string"}
},
"additionalProperties": false
},
"uniqueItems": true
},
"storageVersion": {
"description": "To make schema changes easier in the future",
"type": "string"
},
"allowedTabId": {
"description": "The tab that should not enforce a block",
"type": "integer"
},
"blockType": {
"description": "The strictness of the block page",
"type": "string",
"enum": ["hard", "soft"]
},
"softBlockDelay": {
"description": "The number of seconds that the user must wait before continuing",
"type": "integer",
"minimum": 0
},
"reenableMinutes": {
"description": "Number of minutes to wait before automatically turning PawBlock back on after turning it off",
"type": ["integer", "null"],
"minimum": 1
}
},
"additionalProperties": false
}