@adguard/filters-compiler 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,184 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://adguard.com/mac/filters.json",
5
+ "type": "object",
6
+ "title": "The Root Schema",
7
+ "required": [
8
+ "groups",
9
+ "filters"
10
+ ],
11
+ "properties": {
12
+ "groups": {
13
+ "$id": "#/properties/groups",
14
+ "type": "array",
15
+ "title": "The Groups Schema",
16
+ "items": {
17
+ "$id": "#/properties/groups/items",
18
+ "type": "object",
19
+ "title": "The Items Schema",
20
+ "required": [
21
+ "groupId",
22
+ "groupName",
23
+ "displayNumber"
24
+ ],
25
+ "properties": {
26
+ "groupId": {
27
+ "$id": "#/properties/groups/items/properties/groupId",
28
+ "type": "integer",
29
+ "title": "The Groupid Schema",
30
+ "default": 0,
31
+ "examples": [
32
+ 1
33
+ ]
34
+ },
35
+ "groupName": {
36
+ "$id": "#/properties/groups/items/properties/groupName",
37
+ "type": "string",
38
+ "title": "The Groupname Schema",
39
+ "default": "",
40
+ "examples": [
41
+ "Ad Blocking"
42
+ ],
43
+ "pattern": "^(.*)$"
44
+ },
45
+ "displayNumber": {
46
+ "$id": "#/properties/groups/items/properties/displayNumber",
47
+ "type": "integer",
48
+ "title": "The Displaynumber Schema",
49
+ "default": 0,
50
+ "examples": [
51
+ 1
52
+ ]
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "filters": {
58
+ "$id": "#/properties/filters",
59
+ "type": "array",
60
+ "title": "The Filters Schema",
61
+ "items": {
62
+ "$id": "#/properties/filters/items",
63
+ "type": "object",
64
+ "title": "The Items Schema",
65
+ "required": [
66
+ "filterId",
67
+ "name",
68
+ "description",
69
+ "homepage",
70
+ "expires",
71
+ "displayNumber",
72
+ "groupId",
73
+ "subscriptionUrl",
74
+ "version",
75
+ "timeUpdated",
76
+ "languages"
77
+ ],
78
+ "properties": {
79
+ "filterId": {
80
+ "$id": "#/properties/filters/items/properties/filterId",
81
+ "type": "integer",
82
+ "title": "The Filterid Schema",
83
+ "default": 0,
84
+ "examples": [
85
+ 101
86
+ ]
87
+ },
88
+ "name": {
89
+ "$id": "#/properties/filters/items/properties/name",
90
+ "type": "string",
91
+ "title": "The Name Schema",
92
+ "default": "",
93
+ "examples": [
94
+ "EasyList"
95
+ ],
96
+ "pattern": "^(.*)$"
97
+ },
98
+ "description": {
99
+ "$id": "#/properties/filters/items/properties/description",
100
+ "type": "string",
101
+ "title": "The Description Schema",
102
+ "default": "",
103
+ "examples": [
104
+ "EasyList is the primary subscription that removes adverts from web pages in English language."
105
+ ],
106
+ "pattern": "^(.*)$"
107
+ },
108
+ "homepage": {
109
+ "$id": "#/properties/filters/items/properties/homepage",
110
+ "type": "string",
111
+ "title": "The Homepage Schema",
112
+ "default": "",
113
+ "examples": [
114
+ "https://easylist.to/"
115
+ ],
116
+ "pattern": "^(.*)$"
117
+ },
118
+ "expires": {
119
+ "$id": "#/properties/filters/items/properties/expires",
120
+ "type": "integer",
121
+ "title": "The Expires Schema",
122
+ "default": 0,
123
+ "examples": [
124
+ 172800
125
+ ]
126
+ },
127
+ "displayNumber": {
128
+ "$id": "#/properties/filters/items/properties/displayNumber",
129
+ "type": "integer",
130
+ "title": "The Displaynumber Schema",
131
+ "default": 0,
132
+ "examples": [
133
+ 3
134
+ ]
135
+ },
136
+ "groupId": {
137
+ "$id": "#/properties/filters/items/properties/groupId",
138
+ "type": "integer",
139
+ "title": "The Groupid Schema",
140
+ "default": 0,
141
+ "examples": [
142
+ 1
143
+ ]
144
+ },
145
+ "subscriptionUrl": {
146
+ "$id": "#/properties/filters/items/properties/subscriptionUrl",
147
+ "type": "string",
148
+ "title": "The Subscriptionurl Schema",
149
+ "default": "",
150
+ "examples": [
151
+ "https://easylist.to/easylist/easylist.txt"
152
+ ],
153
+ "pattern": "^(.*)$"
154
+ },
155
+ "version": {
156
+ "$id": "#/properties/filters/items/properties/version",
157
+ "type": "string",
158
+ "title": "The Version Schema",
159
+ "default": "",
160
+ "examples": [
161
+ "2.0.20.32"
162
+ ],
163
+ "pattern": "^(.*)$"
164
+ },
165
+ "timeUpdated": {
166
+ "$id": "#/properties/filters/items/properties/timeUpdated",
167
+ "type": "string",
168
+ "title": "The Timeupdated Schema",
169
+ "default": "",
170
+ "examples": [
171
+ "2018-12-04T16:00:16+0300"
172
+ ],
173
+ "pattern": "^(.*)$"
174
+ },
175
+ "languages": {
176
+ "$id": "#/properties/filters/items/properties/languages",
177
+ "type": "array",
178
+ "title": "The Languages Schema"
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }