1 | {
|
2 | "$schema": "http://json-schema.org/draft-07/schema#",
|
3 | "anyOf": [
|
4 | {
|
5 | "$ref": "#/definitions/IGraphQLProjects"
|
6 | },
|
7 | {
|
8 | "$ref": "#/definitions/IGraphQLProject"
|
9 | },
|
10 | {
|
11 | "$ref": "#/definitions/IGraphQLProjectLegacy"
|
12 | }
|
13 | ],
|
14 | "definitions": {
|
15 | "IExtensions": {
|
16 | "additionalProperties": {},
|
17 | "description": "Configuration of each used extension",
|
18 | "title": "IExtensions",
|
19 | "type": "object"
|
20 | },
|
21 | "IGraphQLProject": {
|
22 | "description": "GraphQL Project",
|
23 | "properties": {
|
24 | "documents": {
|
25 | "anyOf": [
|
26 | {
|
27 | "items": {
|
28 | "type": "string"
|
29 | },
|
30 | "type": "array"
|
31 | },
|
32 | {
|
33 | "type": "string"
|
34 | }
|
35 | ],
|
36 | "title": "documents"
|
37 | },
|
38 | "exclude": {
|
39 | "anyOf": [
|
40 | {
|
41 | "items": {
|
42 | "type": "string"
|
43 | },
|
44 | "type": "array"
|
45 | },
|
46 | {
|
47 | "type": "string"
|
48 | }
|
49 | ],
|
50 | "title": "exclude"
|
51 | },
|
52 | "extensions": {
|
53 | "$ref": "#/definitions/IExtensions",
|
54 | "title": "extensions"
|
55 | },
|
56 | "include": {
|
57 | "anyOf": [
|
58 | {
|
59 | "items": {
|
60 | "type": "string"
|
61 | },
|
62 | "type": "array"
|
63 | },
|
64 | {
|
65 | "type": "string"
|
66 | }
|
67 | ],
|
68 | "title": "include"
|
69 | },
|
70 | "schema": {
|
71 | "anyOf": [
|
72 | {
|
73 | "items": {
|
74 | "type": "string"
|
75 | },
|
76 | "type": "array"
|
77 | },
|
78 | {
|
79 | "type": "string"
|
80 | }
|
81 | ],
|
82 | "title": "schema"
|
83 | }
|
84 | },
|
85 | "required": ["schema"],
|
86 | "title": "IGraphQLProject",
|
87 | "type": "object"
|
88 | },
|
89 | "IGraphQLProjectLegacy": {
|
90 | "description": "Legacy structure of GraphQL Config v2",
|
91 | "properties": {
|
92 | "excludes": {
|
93 | "items": {
|
94 | "type": "string"
|
95 | },
|
96 | "title": "excludes",
|
97 | "type": "array"
|
98 | },
|
99 | "extensions": {
|
100 | "additionalProperties": {},
|
101 | "title": "extensions",
|
102 | "type": "object"
|
103 | },
|
104 | "includes": {
|
105 | "items": {
|
106 | "type": "string"
|
107 | },
|
108 | "title": "includes",
|
109 | "type": "array"
|
110 | },
|
111 | "schemaPath": {
|
112 | "title": "schemaPath",
|
113 | "type": "string"
|
114 | }
|
115 | },
|
116 | "required": ["schemaPath"],
|
117 | "title": "IGraphQLProjectLegacy",
|
118 | "type": "object"
|
119 | },
|
120 | "IGraphQLProjects": {
|
121 | "description": "Multiple named projects",
|
122 | "properties": {
|
123 | "projects": {
|
124 | "additionalProperties": {
|
125 | "anyOf": [
|
126 | {
|
127 | "$ref": "#/definitions/IGraphQLProject"
|
128 | },
|
129 | {
|
130 | "$ref": "#/definitions/IGraphQLProjectLegacy"
|
131 | }
|
132 | ]
|
133 | },
|
134 | "title": "projects",
|
135 | "type": "object"
|
136 | }
|
137 | },
|
138 | "required": ["projects"],
|
139 | "title": "IGraphQLProjects",
|
140 | "type": "object"
|
141 | }
|
142 | },
|
143 | "description": "Structure of GraphQL Config"
|
144 | }
|