UNPKG

3.81 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 "items": {
119 "type": "string"
120 },
121 "type": "array"
122 },
123 {
124 "items": {
125 "additionalProperties": {
126 "properties": {
127 "headers": {
128 "additionalProperties": {
129 "type": "string"
130 },
131 "title": "headers",
132 "type": "object"
133 }
134 },
135 "required": ["headers"],
136 "type": "object"
137 },
138 "type": "object"
139 },
140 "type": "array"
141 },
142 {
143 "type": "string"
144 }
145 ],
146 "title": "SchemaPointer"
147 },
148 "WithList<string>": {
149 "anyOf": [
150 {
151 "items": {
152 "type": "string"
153 },
154 "type": "array"
155 },
156 {
157 "type": "string"
158 }
159 ],
160 "title": "WithList<string>"
161 }
162 },
163 "description": "Structure of GraphQL Config"
164}