@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,264 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://adguard.com/mac_v2/filters.json",
5
+ "type": "object",
6
+ "title": "The Root Schema",
7
+ "required": [
8
+ "groups",
9
+ "tags",
10
+ "filters"
11
+ ],
12
+ "properties": {
13
+ "groups": {
14
+ "$id": "#/properties/groups",
15
+ "type": "array",
16
+ "title": "The Groups Schema",
17
+ "items": {
18
+ "$id": "#/properties/groups/items",
19
+ "type": "object",
20
+ "title": "The Items Schema",
21
+ "required": [
22
+ "groupId",
23
+ "groupName",
24
+ "displayNumber"
25
+ ],
26
+ "properties": {
27
+ "groupId": {
28
+ "$id": "#/properties/groups/items/properties/groupId",
29
+ "type": "integer",
30
+ "title": "The Groupid Schema",
31
+ "default": 0,
32
+ "examples": [
33
+ 1
34
+ ]
35
+ },
36
+ "groupName": {
37
+ "$id": "#/properties/groups/items/properties/groupName",
38
+ "type": "string",
39
+ "title": "The Groupname Schema",
40
+ "default": "",
41
+ "examples": [
42
+ "Ad Blocking"
43
+ ],
44
+ "pattern": "^(.*)$"
45
+ },
46
+ "displayNumber": {
47
+ "$id": "#/properties/groups/items/properties/displayNumber",
48
+ "type": "integer",
49
+ "title": "The Displaynumber Schema",
50
+ "default": 0,
51
+ "examples": [
52
+ 1
53
+ ]
54
+ }
55
+ }
56
+ }
57
+ },
58
+ "tags": {
59
+ "$id": "#/properties/tags",
60
+ "type": "array",
61
+ "title": "The Tags Schema",
62
+ "items": {
63
+ "$id": "#/properties/tags/items",
64
+ "type": "object",
65
+ "title": "The Items Schema",
66
+ "required": [
67
+ "tagId",
68
+ "keyword"
69
+ ],
70
+ "properties": {
71
+ "tagId": {
72
+ "$id": "#/properties/tags/items/properties/tagId",
73
+ "type": "integer",
74
+ "title": "The Tagid Schema",
75
+ "default": 0,
76
+ "examples": [
77
+ 1
78
+ ]
79
+ },
80
+ "keyword": {
81
+ "$id": "#/properties/tags/items/properties/keyword",
82
+ "type": "string",
83
+ "title": "The Keyword Schema",
84
+ "default": "",
85
+ "examples": [
86
+ "purpose:ads"
87
+ ],
88
+ "pattern": "^(.*)$"
89
+ }
90
+ }
91
+ }
92
+ },
93
+ "filters": {
94
+ "$id": "#/properties/filters",
95
+ "type": "array",
96
+ "title": "The Filters Schema",
97
+ "items": {
98
+ "$id": "#/properties/filters/items",
99
+ "type": "object",
100
+ "title": "The Items Schema",
101
+ "required": [
102
+ "filterId",
103
+ "name",
104
+ "description",
105
+ "timeAdded",
106
+ "homepage",
107
+ "expires",
108
+ "displayNumber",
109
+ "groupId",
110
+ "subscriptionUrl",
111
+ "downloadUrl",
112
+ "version",
113
+ "timeUpdated",
114
+ "deprecated",
115
+ "languages",
116
+ "tags"
117
+ ],
118
+ "properties": {
119
+ "filterId": {
120
+ "$id": "#/properties/filters/items/properties/filterId",
121
+ "type": "integer",
122
+ "title": "The Filterid Schema",
123
+ "default": 0,
124
+ "examples": [
125
+ 101
126
+ ]
127
+ },
128
+ "name": {
129
+ "$id": "#/properties/filters/items/properties/name",
130
+ "type": "string",
131
+ "title": "The Name Schema",
132
+ "default": "",
133
+ "examples": [
134
+ "EasyList"
135
+ ],
136
+ "pattern": "^(.*)$"
137
+ },
138
+ "description": {
139
+ "$id": "#/properties/filters/items/properties/description",
140
+ "type": "string",
141
+ "title": "The Description Schema",
142
+ "default": "",
143
+ "examples": [
144
+ "EasyList is the primary subscription that removes adverts from web pages in English language."
145
+ ],
146
+ "pattern": "^(.*)$"
147
+ },
148
+ "timeAdded": {
149
+ "$id": "#/properties/filters/items/properties/timeAdded",
150
+ "type": "string",
151
+ "title": "The Timeadded Schema",
152
+ "default": "",
153
+ "examples": [
154
+ "2014-06-30T10:56:55+0300"
155
+ ],
156
+ "pattern": "^(.*)$"
157
+ },
158
+ "deprecated": {
159
+ "$id": "#/properties/filters/items/properties/deprecated",
160
+ "type": "boolean",
161
+ "title": "Filter is deprecated and shoudln't be used",
162
+ "default": false
163
+ },
164
+ "homepage": {
165
+ "$id": "#/properties/filters/items/properties/homepage",
166
+ "type": "string",
167
+ "title": "The Homepage Schema",
168
+ "default": "",
169
+ "examples": [
170
+ "https://easylist.to/"
171
+ ],
172
+ "pattern": "^(.*)$"
173
+ },
174
+ "expires": {
175
+ "$id": "#/properties/filters/items/properties/expires",
176
+ "type": "integer",
177
+ "title": "The Expires Schema",
178
+ "default": 0,
179
+ "examples": [
180
+ 172800
181
+ ]
182
+ },
183
+ "displayNumber": {
184
+ "$id": "#/properties/filters/items/properties/displayNumber",
185
+ "type": "integer",
186
+ "title": "The Displaynumber Schema",
187
+ "default": 0,
188
+ "examples": [
189
+ 3
190
+ ]
191
+ },
192
+ "groupId": {
193
+ "$id": "#/properties/filters/items/properties/groupId",
194
+ "type": "integer",
195
+ "title": "The Groupid Schema",
196
+ "default": 0,
197
+ "examples": [
198
+ 1
199
+ ]
200
+ },
201
+ "subscriptionUrl": {
202
+ "$id": "#/properties/filters/items/properties/subscriptionUrl",
203
+ "type": "string",
204
+ "title": "The Subscriptionurl Schema",
205
+ "default": "",
206
+ "examples": [
207
+ "https://easylist.to/easylist/easylist.txt"
208
+ ],
209
+ "pattern": "^(.*)$"
210
+ },
211
+ "downloadUrl": {
212
+ "$id": "#/properties/filters/items/properties/downloadUrl",
213
+ "type": "string",
214
+ "title": "The download URL Schema",
215
+ "default": "",
216
+ "examples": [
217
+ "https://filters.adtidy.org/extension/safari/filters/1.txt"
218
+ ],
219
+ "pattern": "^(.*)$"
220
+ },
221
+ "version": {
222
+ "$id": "#/properties/filters/items/properties/version",
223
+ "type": "string",
224
+ "title": "The Version Schema",
225
+ "default": "",
226
+ "examples": [
227
+ "2.0.20.32"
228
+ ],
229
+ "pattern": "^(.*)$"
230
+ },
231
+ "timeUpdated": {
232
+ "$id": "#/properties/filters/items/properties/timeUpdated",
233
+ "type": "string",
234
+ "title": "The Timeupdated Schema",
235
+ "default": "",
236
+ "examples": [
237
+ "2018-12-04T16:00:16+0300"
238
+ ],
239
+ "pattern": "^(.*)$"
240
+ },
241
+ "languages": {
242
+ "$id": "#/properties/filters/items/properties/languages",
243
+ "type": "array",
244
+ "title": "The Languages Schema"
245
+ },
246
+ "tags": {
247
+ "$id": "#/properties/filters/items/properties/tags",
248
+ "type": "array",
249
+ "title": "The Tags Schema",
250
+ "items": {
251
+ "$id": "#/properties/filters/items/properties/tags/items",
252
+ "type": "integer",
253
+ "title": "The Items Schema",
254
+ "default": 0,
255
+ "examples": [
256
+ 1
257
+ ]
258
+ }
259
+ }
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }