Skip to content

Commit a1884bb

Browse files
jbellengerbenjie
andauthored
3.13 Directive validation edits (#1089)
* directive validation consistency edits - add requirement that DirectiveLocations is non empty - Validation -> TypeValidation - s/directive/Directive in most places * add missing period * Update spec/Section 3 -- Type System.md --------- Co-authored-by: Benjie <[email protected]>
1 parent c855454 commit a1884bb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

spec/Section 3 -- Type System.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -2037,19 +2037,20 @@ directive @invalidExample(arg: String @invalidExample) on ARGUMENT_DEFINITION
20372037
Note: The order in which directives appear may be significant, including
20382038
repeatable directives.
20392039

2040-
**Validation**
2040+
**Type Validation**
20412041

2042-
1. A directive definition must not contain the use of a directive which
2042+
1. A Directive definition must include at least one DirectiveLocation.
2043+
2. A Directive definition must not contain the use of a Directive which
20432044
references itself directly.
2044-
2. A directive definition must not contain the use of a directive which
2045+
3. A Directive definition must not contain the use of a Directive which
20452046
references itself indirectly by referencing a Type or Directive which
2046-
transitively includes a reference to this directive.
2047-
3. The directive must not have a name which begins with the characters {"\_\_"}
2047+
transitively includes a reference to this Directive.
2048+
4. The Directive must not have a name which begins with the characters {"\_\_"}
20482049
(two underscores).
2049-
4. For each argument of the directive:
2050+
5. For each argument of the Directive:
20502051
1. The argument must not have a name which begins with the characters
20512052
{"\_\_"} (two underscores).
2052-
2. The argument must have a unique name within that directive; no two
2053+
2. The argument must have a unique name within that Directive; no two
20532054
arguments may share the same name.
20542055
3. The argument must accept a type where {IsInputType(argumentType)} returns
20552056
{true}.

0 commit comments

Comments
 (0)