Skip to content

Commit 0eb5b88

Browse files
committed
comment
1 parent b15fbcd commit 0eb5b88

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/validation/specifiedRules.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { KnownFragmentNamesRule } from './rules/KnownFragmentNamesRule.js';
2323
import { KnownTypeNamesRule } from './rules/KnownTypeNamesRule.js';
2424
// Spec Section: "Lone Anonymous Operation"
2525
import { LoneAnonymousOperationRule } from './rules/LoneAnonymousOperationRule.js';
26-
import { MaxIntrospectionDepthRule } from './rules/MaxIntrospectionDepthRule.js';
2726
// SDL-specific validation rules
2827
import { LoneSchemaDefinitionRule } from './rules/LoneSchemaDefinitionRule.js';
2928
// Spec Section: "Fragments must not form cycles"
@@ -76,6 +75,9 @@ import { VariablesAreInputTypesRule } from './rules/VariablesAreInputTypesRule.j
7675
import { VariablesInAllowedPositionRule } from './rules/VariablesInAllowedPositionRule.js';
7776
import type { SDLValidationRule, ValidationRule } from './ValidationContext.js';
7877

78+
// TODO: Spec Section
79+
import { MaxIntrospectionDepthRule } from './rules/MaxIntrospectionDepthRule.js';
80+
7981
/**
8082
* This set includes all validation rules defined by the GraphQL spec.
8183
*
@@ -113,6 +115,7 @@ export const specifiedRules: ReadonlyArray<ValidationRule> = Object.freeze([
113115
VariablesInAllowedPositionRule,
114116
OverlappingFieldsCanBeMergedRule,
115117
UniqueInputFieldNamesRule,
118+
// Technically this isn't part of the spec but it's a strongly encouraged validation rule.
116119
MaxIntrospectionDepthRule,
117120
]);
118121

0 commit comments

Comments
 (0)