@@ -180,11 +180,16 @@ export const GRAPHQL_JS_VALIDATIONS = Object.assign(
180
180
description : `A fragment spread is only valid if the type condition could ever possibly be true: if there is a non-empty intersection of the possible parent types, and possible types which pass the type condition.` ,
181
181
} ,
182
182
} ) ,
183
- validationToRule ( 'possible-type-extension' , 'PossibleTypeExtensions' , {
184
- docs : {
185
- description : `A type extension is only valid if the type is defined and has the same kind.` ,
183
+ validationToRule (
184
+ 'possible-type-extension' ,
185
+ 'PossibleTypeExtensions' ,
186
+ {
187
+ docs : {
188
+ description : `A type extension is only valid if the type is defined and has the same kind.` ,
189
+ } ,
186
190
} ,
187
- } ) ,
191
+ true
192
+ ) ,
188
193
validationToRule ( 'provided-required-arguments' , 'ProvidedRequiredArguments' , {
189
194
docs : {
190
195
description : `A field or directive is only valid if all required (non-null without a default value) field arguments have been provided.` ,
@@ -205,36 +210,61 @@ export const GRAPHQL_JS_VALIDATIONS = Object.assign(
205
210
description : `A GraphQL field or directive is only valid if all supplied arguments are uniquely named.` ,
206
211
} ,
207
212
} ) ,
208
- validationToRule ( 'unique-directive-names' , 'UniqueDirectiveNames' , {
209
- docs : {
210
- description : `A GraphQL document is only valid if all defined directives have unique names.` ,
213
+ validationToRule (
214
+ 'unique-directive-names' ,
215
+ 'UniqueDirectiveNames' ,
216
+ {
217
+ docs : {
218
+ description : `A GraphQL document is only valid if all defined directives have unique names.` ,
219
+ } ,
211
220
} ,
212
- } ) ,
221
+ true
222
+ ) ,
213
223
validationToRule ( 'unique-directive-names-per-location' , 'UniqueDirectivesPerLocation' , {
214
224
docs : {
215
225
description : `A GraphQL document is only valid if all non-repeatable directives at a given location are uniquely named.` ,
216
226
} ,
217
227
} ) ,
218
- validationToRule ( 'unique-enum-value-names' , 'UniqueEnumValueNames' , {
219
- docs : {
220
- description : `A GraphQL enum type is only valid if all its values are uniquely named.` ,
228
+ validationToRule (
229
+ 'unique-enum-value-names' ,
230
+ 'UniqueEnumValueNames' ,
231
+ {
232
+ docs : {
233
+ description : `A GraphQL enum type is only valid if all its values are uniquely named.` ,
234
+ } ,
221
235
} ,
222
- } ) ,
223
- validationToRule ( 'unique-field-definition-names' , 'UniqueFieldDefinitionNames' , {
224
- docs : {
225
- description : `A GraphQL complex type is only valid if all its fields are uniquely named.` ,
236
+ true
237
+ ) ,
238
+ validationToRule (
239
+ 'unique-field-definition-names' ,
240
+ 'UniqueFieldDefinitionNames' ,
241
+ {
242
+ docs : {
243
+ description : `A GraphQL complex type is only valid if all its fields are uniquely named.` ,
244
+ } ,
226
245
} ,
227
- } ) ,
228
- validationToRule ( 'unique-input-field-names' , 'UniqueInputFieldNames' , {
229
- docs : {
230
- description : `A GraphQL input object value is only valid if all supplied fields are uniquely named.` ,
246
+ true
247
+ ) ,
248
+ validationToRule (
249
+ 'unique-input-field-names' ,
250
+ 'UniqueInputFieldNames' ,
251
+ {
252
+ docs : {
253
+ description : `A GraphQL input object value is only valid if all supplied fields are uniquely named.` ,
254
+ } ,
231
255
} ,
232
- } ) ,
233
- validationToRule ( 'unique-operation-types' , 'UniqueOperationTypes' , {
234
- docs : {
235
- description : `A GraphQL document is only valid if it has only one type per operation.` ,
256
+ true
257
+ ) ,
258
+ validationToRule (
259
+ 'unique-operation-types' ,
260
+ 'UniqueOperationTypes' ,
261
+ {
262
+ docs : {
263
+ description : `A GraphQL document is only valid if it has only one type per operation.` ,
264
+ } ,
236
265
} ,
237
- } ) ,
266
+ true
267
+ ) ,
238
268
validationToRule (
239
269
'unique-type-names' ,
240
270
'UniqueTypeNames' ,
0 commit comments