Skip to content

Commit ba049f9

Browse files
committed
Merge pull request #129 from bjornbytes/small-fixes
Grammar fixes and section adjustment
2 parents 9934d83 + 2c6620c commit ba049f9

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

spec/Section 5 -- Validation.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ fragment ownerFragment on Dog {
887887

888888
** Formal Specification **
889889

890-
* For each {spread} (named or inline) in defined in the document.
890+
* For each {spread} (named or inline) defined in the document.
891891
* Let {fragment} be the target of {spread}
892892
* Let {fragmentType} be the type condition of {fragment}
893893
* Let {parentType} be the type of the selection set containing {spread}
@@ -910,7 +910,7 @@ the parent type.
910910

911911
##### Object Spreads In Object Scope
912912

913-
In the scope of a object type, the only valid object type
913+
In the scope of an object type, the only valid object type
914914
fragment spread is one that applies to the same type that
915915
is in scope.
916916

@@ -1100,11 +1100,9 @@ For example the following query will not pass validation.
11001100
GraphQL servers define what directives they support. For each
11011101
usage of a directive, the directive must be available on that server.
11021102

1103-
## Operations
1104-
1105-
### Variables
1103+
## Variables
11061104

1107-
#### Variable Default Values Are Correctly Typed
1105+
### Variable Default Values Are Correctly Typed
11081106

11091107
** Formal Specification **
11101108

@@ -1117,8 +1115,8 @@ usage of a directive, the directive must be available on that server.
11171115

11181116
** Explanatory Text **
11191117

1120-
Variable defined by operations are allowed to define default values
1121-
if the type of that variable not non-null.
1118+
Variables defined by operations are allowed to define default values
1119+
if the type of that variable is not non-null.
11221120

11231121
For example the following query will pass validation.
11241122

@@ -1167,7 +1165,7 @@ query intToFloatQuery($floatVar: Float = 1) {
11671165
}
11681166
```
11691167

1170-
#### Variables Are Input Types
1168+
### Variables Are Input Types
11711169

11721170
** Formal Specification **
11731171

@@ -1235,7 +1233,7 @@ query takesCatOrDog($catOrDog: CatOrDog) {
12351233
}
12361234
```
12371235

1238-
#### All Variable Uses Defined
1236+
### All Variable Uses Defined
12391237

12401238
** Formal Specification **
12411239

@@ -1377,7 +1375,7 @@ This is because {housetrainedQueryTwoNotDefined} does not define
13771375
a variable ${atOtherHomes} but that variable is used by {isHousetrainedFragment}
13781376
which is included in that operation.
13791377

1380-
#### All Variables Used
1378+
### All Variables Used
13811379

13821380
** Formal Specification **
13831381

@@ -1459,7 +1457,7 @@ fragment isHousetrainedFragment on Dog {
14591457
This document is not valid because {queryWithExtraVar} defines
14601458
an extraneous variable.
14611459

1462-
#### All Variable Usages are Allowed
1460+
### All Variable Usages are Allowed
14631461

14641462
** Formal Specification **
14651463

0 commit comments

Comments
 (0)