File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import { KnownFragmentNamesRule } from './rules/KnownFragmentNamesRule.js';
23
23
import { KnownTypeNamesRule } from './rules/KnownTypeNamesRule.js' ;
24
24
// Spec Section: "Lone Anonymous Operation"
25
25
import { LoneAnonymousOperationRule } from './rules/LoneAnonymousOperationRule.js' ;
26
- import { MaxIntrospectionDepthRule } from './rules/MaxIntrospectionDepthRule.js' ;
27
26
// SDL-specific validation rules
28
27
import { LoneSchemaDefinitionRule } from './rules/LoneSchemaDefinitionRule.js' ;
29
28
// Spec Section: "Fragments must not form cycles"
@@ -76,6 +75,9 @@ import { VariablesAreInputTypesRule } from './rules/VariablesAreInputTypesRule.j
76
75
import { VariablesInAllowedPositionRule } from './rules/VariablesInAllowedPositionRule.js' ;
77
76
import type { SDLValidationRule , ValidationRule } from './ValidationContext.js' ;
78
77
78
+ // TODO: Spec Section
79
+ import { MaxIntrospectionDepthRule } from './rules/MaxIntrospectionDepthRule.js' ;
80
+
79
81
/**
80
82
* This set includes all validation rules defined by the GraphQL spec.
81
83
*
@@ -113,6 +115,7 @@ export const specifiedRules: ReadonlyArray<ValidationRule> = Object.freeze([
113
115
VariablesInAllowedPositionRule ,
114
116
OverlappingFieldsCanBeMergedRule ,
115
117
UniqueInputFieldNamesRule ,
118
+ // Technically this isn't part of the spec but it's a strongly encouraged validation rule.
116
119
MaxIntrospectionDepthRule ,
117
120
] ) ;
118
121
You can’t perform that action at this time.
0 commit comments