Skip to content

Commit 6cc621e

Browse files
committed
Fix cases in validation that cause crashes
1 parent 468d848 commit 6cc621e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/Section 5 -- Validation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,7 @@ DetectFragmentCycles(fragmentDefinition, visited):
11441144
- {visited} must not contain {spread}.
11451145
- Let {nextVisited} be the set including {spread} and members of {visited}.
11461146
- Let {nextFragmentDefinition} be the target of {spread}.
1147+
- If {nextFragmentDefinition} can't be found, return.
11471148
- {DetectFragmentCycles(nextFragmentDefinition, nextVisited)}.
11481149

11491150
**Explanatory Text**
@@ -1995,6 +1996,7 @@ variable.
19951996
- Let {variableName} be the name of {variableUsage}.
19961997
- Let {variableDefinition} be the {VariableDefinition} named {variableName}
19971998
defined within {operation}.
1999+
- If no {variableDefinition} can be found, return.
19982000
- {IsVariableUsageAllowed(variableDefinition, variableUsage)} must be
19992001
{true}.
20002002

0 commit comments

Comments
 (0)