Skip to content

backport[v16]: Introduce "recommended" validation rules #4119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jun 21, 2024
Prev Previous commit
Next Next commit
reorder
  • Loading branch information
enisdenjo committed Jun 3, 2024
commit bd6dcb5f0399cc321515bfd905dbd749c20b9b30
4 changes: 2 additions & 2 deletions src/validation/specifiedRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import { KnownFragmentNamesRule } from './rules/KnownFragmentNamesRule';
import { KnownTypeNamesRule } from './rules/KnownTypeNamesRule';
// Spec Section: "Lone Anonymous Operation"
import { LoneAnonymousOperationRule } from './rules/LoneAnonymousOperationRule';
import { MaxIntrospectionDepthRule } from './rules/MaxIntrospectionDepthRule';
// SDL-specific validation rules
import { LoneSchemaDefinitionRule } from './rules/LoneSchemaDefinitionRule';
import { MaxIntrospectionDepthRule } from './rules/MaxIntrospectionDepthRule';
// Spec Section: "Fragments must not form cycles"
import { NoFragmentCyclesRule } from './rules/NoFragmentCyclesRule';
// Spec Section: "All Variable Used Defined"
Expand Down Expand Up @@ -99,9 +99,9 @@ export const specifiedRules: ReadonlyArray<ValidationRule> = Object.freeze([
ValuesOfCorrectTypeRule,
ProvidedRequiredArgumentsRule,
VariablesInAllowedPositionRule,
MaxIntrospectionDepthRule,
OverlappingFieldsCanBeMergedRule,
UniqueInputFieldNamesRule,
MaxIntrospectionDepthRule,
]);

/**
Expand Down