UNPKG

4.3 kBJSONView Raw
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 "DocumentPointer": {
16 "anyOf": [
17 {
18 "items": {
19 "type": "string"
20 },
21 "type": "array"
22 },
23 {
24 "type": "string"
25 }
26 ],
27 "title": "DocumentPointer"
28 },
29 "IExtensions": {
30 "additionalProperties": {},
31 "description": "Configuration of each used extension",
32 "title": "IExtensions",
33 "type": "object"
34 },
35 "IGraphQLProject": {
36 "description": "GraphQL Project",
37 "properties": {
38 "documents": {
39 "$ref": "#/definitions/DocumentPointer",
40 "title": "documents"
41 },
42 "exclude": {
43 "$ref": "#/definitions/WithList<string>",
44 "title": "exclude"
45 },
46 "extensions": {
47 "$ref": "#/definitions/IExtensions",
48 "title": "extensions"
49 },
50 "include": {
51 "$ref": "#/definitions/WithList<string>",
52 "title": "include"
53 },
54 "schema": {
55 "$ref": "#/definitions/SchemaPointer",
56 "title": "schema"
57 }
58 },
59 "required": ["schema"],
60 "title": "IGraphQLProject",
61 "type": "object"
62 },
63 "IGraphQLProjectLegacy": {
64 "description": "Legacy structure of GraphQL Config v2",
65 "properties": {
66 "excludes": {
67 "items": {
68 "type": "string"
69 },
70 "title": "excludes",
71 "type": "array"
72 },
73 "extensions": {
74 "$ref": "#/definitions/IExtensions",
75 "title": "extensions"
76 },
77 "includes": {
78 "items": {
79 "type": "string"
80 },
81 "title": "includes",
82 "type": "array"
83 },
84 "schemaPath": {
85 "title": "schemaPath",
86 "type": "string"
87 }
88 },
89 "required": ["schemaPath"],
90 "title": "IGraphQLProjectLegacy",
91 "type": "object"
92 },
93 "IGraphQLProjects": {
94 "description": "Multiple named projects",
95 "properties": {
96 "projects": {
97 "additionalProperties": {
98 "anyOf": [
99 {
100 "$ref": "#/definitions/IGraphQLProject"
101 },
102 {
103 "$ref": "#/definitions/IGraphQLProjectLegacy"
104 }
105 ]
106 },
107 "title": "projects",
108 "type": "object"
109 }
110 },
111 "required": ["projects"],
112 "title": "IGraphQLProjects",
113 "type": "object"
114 },
115 "SchemaPointer": {
116 "anyOf": [
117 {
118 "additionalProperties": {
119 "properties": {
120 "headers": {
121 "additionalProperties": {
122 "type": "string"
123 },
124 "title": "headers",
125 "type": "object"
126 }
127 },
128 "required": ["headers"],
129 "type": "object"
130 },
131 "type": "object"
132 },
133 {
134 "items": {
135 "anyOf": [
136 {
137 "additionalProperties": {
138 "properties": {
139 "headers": {
140 "additionalProperties": {
141 "type": "string"
142 },
143 "title": "headers",
144 "type": "object"
145 }
146 },
147 "required": ["headers"],
148 "type": "object"
149 },
150 "type": "object"
151 },
152 {
153 "type": "string"
154 }
155 ]
156 },
157 "type": "array"
158 },
159 {
160 "type": "string"
161 }
162 ],
163 "title": "SchemaPointer"
164 },
165 "WithList<string>": {
166 "anyOf": [
167 {
168 "items": {
169 "type": "string"
170 },
171 "type": "array"
172 },
173 {
174 "type": "string"
175 }
176 ],
177 "title": "WithList<string>"
178 }
179 },
180 "description": "Structure of GraphQL Config"
181}