UNPKG

3.85 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 "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 "items": {
80 "additionalProperties": {
81 "properties": {
82 "headers": {
83 "additionalProperties": {
84 "type": "string"
85 },
86 "title": "headers",
87 "type": "object"
88 }
89 },
90 "required": ["headers"],
91 "type": "object"
92 },
93 "type": "object"
94 },
95 "type": "array"
96 },
97 {
98 "type": "string"
99 }
100 ],
101 "title": "schema"
102 }
103 },
104 "required": ["schema"],
105 "title": "IGraphQLProject",
106 "type": "object"
107 },
108 "IGraphQLProjectLegacy": {
109 "description": "Legacy structure of GraphQL Config v2",
110 "properties": {
111 "excludes": {
112 "items": {
113 "type": "string"
114 },
115 "title": "excludes",
116 "type": "array"
117 },
118 "extensions": {
119 "$ref": "#/definitions/IExtensions",
120 "title": "extensions"
121 },
122 "includes": {
123 "items": {
124 "type": "string"
125 },
126 "title": "includes",
127 "type": "array"
128 },
129 "schemaPath": {
130 "title": "schemaPath",
131 "type": "string"
132 }
133 },
134 "required": ["schemaPath"],
135 "title": "IGraphQLProjectLegacy",
136 "type": "object"
137 },
138 "IGraphQLProjects": {
139 "description": "Multiple named projects",
140 "properties": {
141 "projects": {
142 "additionalProperties": {
143 "anyOf": [
144 {
145 "$ref": "#/definitions/IGraphQLProject"
146 },
147 {
148 "$ref": "#/definitions/IGraphQLProjectLegacy"
149 }
150 ]
151 },
152 "title": "projects",
153 "type": "object"
154 }
155 },
156 "required": ["projects"],
157 "title": "IGraphQLProjects",
158 "type": "object"
159 }
160 },
161 "description": "Structure of GraphQL Config"
162}