1 | {
|
2 | "type": "object",
|
3 | "definitions": {
|
4 | "Attribute": {
|
5 | "type": "object",
|
6 | "properties": {
|
7 | "tag": {
|
8 | "type": "string",
|
9 | "minLength": 1
|
10 | },
|
11 | "attribute": {
|
12 | "type": "string",
|
13 | "minLength": 1
|
14 | },
|
15 | "type": {
|
16 | "enum": ["src", "srcset"]
|
17 | },
|
18 | "filter": {
|
19 | "instanceof": "Function"
|
20 | }
|
21 | },
|
22 | "required": ["attribute", "type"],
|
23 | "additionalProperties": false
|
24 | },
|
25 | "AttributeList": {
|
26 | "type": "array",
|
27 | "items": {
|
28 | "$ref": "#/definitions/Attribute"
|
29 | },
|
30 | "minItems": 1,
|
31 | "uniqueItems": true
|
32 | }
|
33 | },
|
34 | "properties": {
|
35 | "preprocessor": {
|
36 | "instanceof": "Function"
|
37 | },
|
38 | "attributes": {
|
39 | "anyOf": [
|
40 | { "type": "boolean" },
|
41 | {
|
42 | "type": "object",
|
43 | "properties": {
|
44 | "list": {
|
45 | "$ref": "#/definitions/AttributeList"
|
46 | },
|
47 | "urlFilter": {
|
48 | "instanceof": "Function"
|
49 | },
|
50 | "root": {
|
51 | "type": "string"
|
52 | }
|
53 | },
|
54 | "additionalProperties": false
|
55 | }
|
56 | ]
|
57 | },
|
58 | "minimize": {
|
59 | "anyOf": [{ "type": "boolean" }, { "type": "object" }]
|
60 | },
|
61 | "esModule": {
|
62 | "type": "boolean"
|
63 | }
|
64 | },
|
65 | "additionalProperties": false
|
66 | }
|