UNPKG

1.36 kBJSONView Raw
1{
2 "title": "Expose Loader options",
3 "definitions": {
4 "ObjectPattern": {
5 "type": "object",
6 "additionalProperties": false,
7 "properties": {
8 "globalName": {
9 "anyOf": [
10 {
11 "type": "string",
12 "minLength": 1
13 },
14 {
15 "type": "array",
16 "items": {
17 "type": "string",
18 "minLength": 1
19 },
20 "minItems": 1
21 }
22 ]
23 },
24 "moduleLocalName": {
25 "type": "string",
26 "minLength": 1
27 },
28 "override": {
29 "type": "boolean"
30 }
31 },
32 "required": ["globalName"]
33 }
34 },
35 "type": "object",
36 "properties": {
37 "exposes": {
38 "anyOf": [
39 {
40 "type": "string",
41 "minLength": 1
42 },
43 {
44 "$ref": "#/definitions/ObjectPattern"
45 },
46 {
47 "type": "array",
48 "items": {
49 "anyOf": [
50 {
51 "type": "string",
52 "minLength": 1
53 },
54 {
55 "$ref": "#/definitions/ObjectPattern"
56 }
57 ]
58 },
59 "minItems": 1
60 }
61 ]
62 }
63 },
64 "anyOf": [{ "required": ["exposes"] }],
65 "additionalProperties": false
66}