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