Skip to content

Commit 691087d

Browse files
committed
Oneof -> OneOf
1 parent 99aa5d9 commit 691087d

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

spec/Section 3 -- Type System.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,15 +1520,15 @@ define arguments or contain references to interfaces and unions, neither of
15201520
which is appropriate for use as an input argument. For this reason, input
15211521
objects have a separate type in the system.
15221522

1523-
**Oneof Input Objects**
1523+
**OneOf Input Objects**
15241524

1525-
Oneof Input Objects are a special variant of Input Objects where the type system
1525+
OneOf Input Objects are a special variant of Input Objects where the type system
15261526
asserts that exactly one of the fields must be set and non-null, all others
15271527
being omitted. This is useful for representing situations where an input may be
15281528
one of many different options.
15291529

15301530
When using the type system definition language, the `@oneOf` directive is used
1531-
to indicate that an Input Object is a Oneof Input Object (and thus requires
1531+
to indicate that an Input Object is a OneOf Input Object (and thus requires
15321532
exactly one of its field be provided):
15331533

15341534
```graphql
@@ -1539,7 +1539,7 @@ input UserUniqueCondition @oneOf {
15391539
}
15401540
```
15411541

1542-
In schema introspection, the `__Type.oneOf` field will return {true} for Oneof
1542+
In schema introspection, the `__Type.oneOf` field will return {true} for OneOf
15431543
Input Objects, and {false} for all other Input Objects.
15441544

15451545
**Circular References**
@@ -1635,7 +1635,7 @@ is constructed with the following rules:
16351635
does not provide a default value, the input object field definition's default
16361636
value should be used.
16371637

1638-
Further, if the input object is a Oneof Input Object, the following additional
1638+
Further, if the input object is a OneOf Input Object, the following additional
16391639
rules apply:
16401640

16411641
- If the input object literal or unordered map does not contain exactly one
@@ -1720,7 +1720,7 @@ input ExampleInputTagged @oneOf {
17201720
{"\_\_"} (two underscores).
17211721
3. The input field must accept a type where {IsInputType(inputFieldType)}
17221722
returns {true}.
1723-
4. If the Input Object is a Oneof Input Object then:
1723+
4. If the Input Object is a OneOf Input Object then:
17241724
1. The type of the input field must be nullable.
17251725
2. The input field must not have a default value.
17261726
3. If an Input Object references itself either directly or through referenced
@@ -1750,7 +1750,7 @@ defined.
17501750
the original Input Object.
17511751
4. Any non-repeatable directives provided must not already apply to the original
17521752
Input Object type.
1753-
5. If the original Input Object is a Oneof Input Object then:
1753+
5. If the original Input Object is a OneOf Input Object then:
17541754
1. All fields of the Input Object type extension must be nullable.
17551755
2. All fields of the Input Object type extension must not have default
17561756
values.
@@ -1974,7 +1974,7 @@ GraphQL implementations that support the type system definition language should
19741974
provide the `@specifiedBy` directive if representing custom scalar definitions.
19751975

19761976
GraphQL implementations that support the type system definition language should
1977-
provide the `@oneOf` directive if representing Oneof Input Objects.
1977+
provide the `@oneOf` directive if representing OneOf Input Objects.
19781978

19791979
When representing a GraphQL schema using the type system definition language any
19801980
_built-in directive_ may be omitted for brevity.
@@ -2171,7 +2171,7 @@ directive @oneOf on INPUT_OBJECT
21712171
```
21722172

21732173
The `@oneOf` directive is used within the type system definition language to
2174-
indicate an Input Object is a Oneof Input Object.
2174+
indicate an Input Object is a OneOf Input Object.
21752175

21762176
```graphql example
21772177
input UserUniqueCondition @oneOf {

spec/Section 4 -- Introspection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ Fields\:
369369
- `name` must return a String.
370370
- `description` may return a String or {null}.
371371
- `inputFields` must return the set of input fields as a list of `__InputValue`.
372-
- `oneOf` must return {true} when representing a Oneof Input Object, {false}
372+
- `oneOf` must return {true} when representing a OneOf Input Object, {false}
373373
otherwise.
374374
- All other fields must return {null}.
375375

spec/Section 5 -- Validation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,12 +1427,12 @@ arguments, an input object may have required fields. An input field is required
14271427
if it has a non-null type and does not have a default value. Otherwise, the
14281428
input object field is optional.
14291429

1430-
### Oneof Input Objects Have Exactly One Field
1430+
### OneOf Input Objects Have Exactly One Field
14311431

14321432
**Formal Specification**
14331433

14341434
- For each {operation} in {document}:
1435-
- Let {oneofInputObjects} be all Oneof Input Objects transitively included in
1435+
- Let {oneofInputObjects} be all OneOf Input Objects transitively included in
14361436
the {operation}.
14371437
- For each {oneofInputObject} in {oneofInputObjects}:
14381438
- Let {fields} be the fields provided by {oneofInputObject}.
@@ -1449,10 +1449,10 @@ input object field is optional.
14491449

14501450
**Explanatory Text**
14511451

1452-
Oneof Input Objects require that exactly one field must be supplied and that
1452+
OneOf Input Objects require that exactly one field must be supplied and that
14531453
field must not be {null}.
14541454

1455-
An empty Oneof Input Object is invalid.
1455+
An empty OneOf Input Object is invalid.
14561456

14571457
```graphql counter-example
14581458
mutation addPet {
@@ -1488,7 +1488,7 @@ mutation addPet {
14881488
}
14891489
```
14901490

1491-
Variables used for Oneof Input Object fields must be non-nullable.
1491+
Variables used for OneOf Input Object fields must be non-nullable.
14921492

14931493
```graphql example
14941494
mutation addPet($cat: CatInput!) {

0 commit comments

Comments
 (0)