|
6 | 6 | "rule": { |
7 | 7 | "oneOf": [ |
8 | 8 | { |
9 | | - "instanceOf": "RegEx" |
| 9 | + "instanceof": "RegExp" |
10 | 10 | }, |
11 | 11 | { |
12 | 12 | "minLength": 1, |
|
18 | 18 | "oneOf": [ |
19 | 19 | { |
20 | 20 | "items": { |
21 | | - "$ref": "#/definitions/rule" |
| 21 | + "description": "A rule condition", |
| 22 | + "anyOf": [ |
| 23 | + { |
| 24 | + "$ref": "#/definitions/rule" |
| 25 | + } |
| 26 | + ] |
22 | 27 | }, |
23 | 28 | "type": "array" |
24 | 29 | }, |
|
31 | 36 | "properties": { |
32 | 37 | "test": { |
33 | 38 | "description": "Include source maps for modules based on their extension (defaults to .js and .css)", |
34 | | - "$ref": "#/definitions/rules" |
| 39 | + "anyOf": [ |
| 40 | + { |
| 41 | + "$ref": "#/definitions/rules" |
| 42 | + } |
| 43 | + ] |
35 | 44 | }, |
36 | 45 | "include": { |
37 | 46 | "description": "Include source maps for module paths that match the given value", |
38 | | - "$ref": "#/definitions/rules" |
| 47 | + "anyOf": [ |
| 48 | + { |
| 49 | + "$ref": "#/definitions/rules" |
| 50 | + } |
| 51 | + ] |
39 | 52 | }, |
40 | 53 | "exclude": { |
41 | 54 | "description": "Exclude modules that match the given value from source map generation", |
42 | | - "$ref": "#/definitions/rules" |
| 55 | + "anyOf": [ |
| 56 | + { |
| 57 | + "$ref": "#/definitions/rules" |
| 58 | + } |
| 59 | + ] |
43 | 60 | }, |
44 | 61 | "filename": { |
45 | 62 | "description": "Defines the output filename of the SourceMap (will be inlined if no value is provided)", |
46 | 63 | "oneOf": [ |
47 | 64 | { |
48 | 65 | "description": "null is not documented, but appears in the codebase", |
49 | | - "enum": [null] |
| 66 | + "enum": [ |
| 67 | + null |
| 68 | + ] |
50 | 69 | }, |
51 | 70 | { |
52 | 71 | "minLength": 1, |
|
58 | 77 | "description": "Appends the given value to the original asset. Usually the #sourceMappingURL comment. [url] is replaced with a URL to the source map file. false disables the appending", |
59 | 78 | "oneOf": [ |
60 | 79 | { |
61 | | - "description": |
62 | | - "null is not documented, but appears in the codebase", |
63 | | - "enum": [false, null] |
| 80 | + "description": "null is not documented, but appears in the codebase", |
| 81 | + "enum": [ |
| 82 | + false, |
| 83 | + null |
| 84 | + ] |
64 | 85 | }, |
65 | 86 | { |
66 | 87 | "minLength": 1, |
|
72 | 93 | "description": "See https://webpack.js.org/configuration/output/#output-devtoolmodulefilenametemplate", |
73 | 94 | "oneOf": [ |
74 | 95 | { |
75 | | - "description": |
76 | | - "fn type undocumented (kinda) but appears in the codebase", |
| 96 | + "description": "fn type undocumented (kinda) but appears in the codebase", |
77 | 97 | "instanceof": "Function" |
78 | 98 | }, |
79 | 99 | { |
|
110 | 130 | "properties": { |
111 | 131 | "test": { |
112 | 132 | "description": "Include source maps for modules based on their extension (defaults to .js and .css)", |
113 | | - "$ref": "#/definitions/rules" |
| 133 | + "anyOf": [ |
| 134 | + { |
| 135 | + "$ref": "#/definitions/rules" |
| 136 | + } |
| 137 | + ] |
114 | 138 | }, |
115 | 139 | "include": { |
116 | 140 | "description": "Include source maps for module paths that match the given value", |
117 | | - "$ref": "#/definitions/rules" |
| 141 | + "anyOf": [ |
| 142 | + { |
| 143 | + "$ref": "#/definitions/rules" |
| 144 | + } |
| 145 | + ] |
118 | 146 | }, |
119 | 147 | "exclude": { |
120 | 148 | "description": "Exclude modules that match the given value from source map generation", |
121 | | - "$ref": "#/definitions/rules" |
| 149 | + "anyOf": [ |
| 150 | + { |
| 151 | + "$ref": "#/definitions/rules" |
| 152 | + } |
| 153 | + ] |
122 | 154 | } |
123 | 155 | } |
124 | 156 | }, |
|
0 commit comments