Skip to content

Commit 3a3ea09

Browse files
committed
Updated the OneOf directive description
1 parent cd6bbc5 commit 3a3ea09

8 files changed

+8
-52
lines changed

src/HotChocolate/Caching/test/Caching.Tests/SchemaTests.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,7 @@ enum CacheControlScope {
4949
"The `@cacheControl` directive may be provided for individual fields or entire object, interface or union types to provide caching hints to the executor."
5050
directive @cacheControl("The maximum amount of time this field's cached value is valid, in seconds." maxAge: Int "The maximum amount of time this field's cached value is valid in shared caches like CDNs, in seconds." sharedMaxAge: Int "If `true`, the field inherits the `maxAge` of its parent field." inheritMaxAge: Boolean "If `PRIVATE`, the field's value is specific to a single user. The default value is `PUBLIC`, which means the field's value is not tied to a single user." scope: CacheControlScope "The Vary HTTP response header describes the parts of the request message aside from the method and URL that influenced the content of the response it occurs in. Most often, this is used to create a cache key when content negotiation is in use." vary: [String]) on OBJECT | FIELD_DEFINITION | INTERFACE | UNION
5151
52-
"""
53-
The `@oneOf` directive is used within the type system definition language
54-
to indicate:
55-
56-
- an Input Object is a Oneof Input Object, or
57-
- an Object Type's Field is a Oneof Field.
58-
"""
52+
"The `@oneOf` directive is used within the type system definition language to indicate an Input Object is a Oneof Input Object."
5953
directive @oneOf on INPUT_OBJECT
6054
6155
"""

src/HotChocolate/Core/src/Types/Properties/TypeResources.Designer.cs

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/HotChocolate/Core/src/Types/Properties/TypeResources.resx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -700,11 +700,7 @@ Type: `{0}`</value>
700700
<value>The fieldName cannot be null or empty.</value>
701701
</data>
702702
<data name="OneOfDirectiveType_Description" xml:space="preserve">
703-
<value>The `@oneOf` directive is used within the type system definition language
704-
to indicate:
705-
706-
- an Input Object is a Oneof Input Object, or
707-
- an Object Type's Field is a Oneof Field.</value>
703+
<value>The `@oneOf` directive is used within the type system definition language to indicate an Input Object is a Oneof Input Object.</value>
708704
</data>
709705
<data name="ThrowHelper_OneOfNoFieldSet" xml:space="preserve">
710706
<value>The Oneof Input Objects `{0}` require that exactly one field must be supplied and that field must not be `null`. Oneof Input Objects are a special variant of Input Objects where the type system asserts that exactly one of the fields must be set and non-null.</value>

src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/DescriptionTests.Schema_With_All_Possible_Descriptions.graphql

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,7 @@ enum SomeEnum {
113113
VALUE2
114114
}
115115

116-
"""
117-
The `@oneOf` directive is used within the type system definition language
118-
to indicate:
119-
120-
- an Input Object is a Oneof Input Object, or
121-
- an Object Type's Field is a Oneof Field.
122-
"""
116+
"The `@oneOf` directive is used within the type system definition language to indicate an Input Object is a Oneof Input Object."
123117
directive @oneOf on INPUT_OBJECT
124118

125119
"Single line comment"

src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/DescriptionTests.Schema_With_All_Possible_Descriptions_No_Indent.graphql

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,7 @@ comment
4040
""" VALUE2 } "Single line comment" enum SomeEnum { "Single line comment" VALUE1 """
4141
Multi line
4242
comment
43-
""" VALUE2 } """
44-
The `@oneOf` directive is used within the type system definition language
45-
to indicate:
46-
47-
- an Input Object is a Oneof Input Object, or
48-
- an Object Type's Field is a Oneof Field.
49-
""" directive @oneOf on INPUT_OBJECT "Single line comment" directive @other("Single line comment" arg1: String """
43+
""" VALUE2 } "The `@oneOf` directive is used within the type system definition language to indicate an Input Object is a Oneof Input Object." directive @oneOf on INPUT_OBJECT "Single line comment" directive @other("Single line comment" arg1: String """
5044
Multi line
5145
comment
5246
""" arg2: String) on FIELD """

src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/OneOfIntegrationTests.OneOf_DefaultValue_On_Directive_Argument.snap

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,5 @@ input DefaultValueInput @oneOf {
1313

1414
directive @defaultValue(value: DefaultValueInput) on FIELD_DEFINITION
1515

16-
"""
17-
The `@oneOf` directive is used within the type system definition language
18-
to indicate:
19-
20-
- an Input Object is a Oneof Input Object, or
21-
- an Object Type's Field is a Oneof Field.
22-
"""
16+
"The `@oneOf` directive is used within the type system definition language to indicate an Input Object is a Oneof Input Object."
2317
directive @oneOf on INPUT_OBJECT

src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/OneOfIntegrationTests.OneOf_DefaultValue_On_Directive_Argument_Fluent.snap

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,5 @@ input DefaultValue @oneOf {
1313

1414
directive @defaultValue(value: DefaultValue) on FIELD_DEFINITION
1515

16-
"""
17-
The `@oneOf` directive is used within the type system definition language
18-
to indicate:
19-
20-
- an Input Object is a Oneof Input Object, or
21-
- an Object Type's Field is a Oneof Field.
22-
"""
16+
"The `@oneOf` directive is used within the type system definition language to indicate an Input Object is a Oneof Input Object."
2317
directive @oneOf on INPUT_OBJECT

src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/OneOfIntegrationTests.Oneof_generic_code_first_schema.snap

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,5 @@ input Example2Input @oneOf {
1111
b: Int
1212
}
1313

14-
"""
15-
The `@oneOf` directive is used within the type system definition language
16-
to indicate:
17-
18-
- an Input Object is a Oneof Input Object, or
19-
- an Object Type's Field is a Oneof Field.
20-
"""
14+
"The `@oneOf` directive is used within the type system definition language to indicate an Input Object is a Oneof Input Object."
2115
directive @oneOf on INPUT_OBJECT

0 commit comments

Comments
 (0)