Skip to content

Commit

Permalink
Clarify pair members are distinct
Browse files Browse the repository at this point in the history
  • Loading branch information
andimarek authored Feb 24, 2025
1 parent e9ac8c8 commit 94f55b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/Section 5 -- Validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ FieldsInSetCanMerge(set):

- Let {fieldsForName} be the set of selections with a given response name in
{set} including visiting fragments and inline fragments.
- Given each pair of members {fieldA} and {fieldB} in {fieldsForName}:
- Given each pair of distinct members {fieldA} and {fieldB} in {fieldsForName}:
- {SameResponseShape(fieldA, fieldB)} must be true.
- If the parent types of {fieldA} and {fieldB} are equal or if either is not
an Object Type:
Expand Down Expand Up @@ -452,7 +452,7 @@ SameResponseShape(fieldA, fieldB):
selection set of {fieldB}.
- Let {fieldsForName} be the set of selections with a given response name in
{mergedSet} including visiting fragments and inline fragments.
- Given each pair of members {subfieldA} and {subfieldB} in {fieldsForName}:
- Given each pair of distinct members {subfieldA} and {subfieldB} in {fieldsForName}:
- If {SameResponseShape(subfieldA, subfieldB)} is {false}, return {false}.
- Return {true}.

Expand Down

0 comments on commit 94f55b9

Please sign in to comment.