Skip to content

Commit 527a3cf

Browse files
committed
Renamed Oneof/oneof to OneOf
1 parent 3a3ea09 commit 527a3cf

File tree

49 files changed

+438
-224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+438
-224
lines changed

dictionary.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ NSwag
109109
ntouches
110110
nwithin
111111
oncall
112-
oneof
113112
OpenIddict
114113
opensgid
115114
OPTOUT

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +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-
"The `@oneOf` directive is used within the type system definition language to indicate an Input Object is a Oneof Input Object."
52+
"The `@oneOf` directive is used within the type system definition language to indicate an Input Object is a OneOf Input Object."
5353
directive @oneOf on INPUT_OBJECT
5454
5555
"""

src/HotChocolate/Core/src/Execution/Properties/Resources.Designer.cs

Lines changed: 359 additions & 144 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/HotChocolate/Core/src/Execution/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
<value>The type {0} was already added.</value>
287287
</data>
288288
<data name="ThrowHelper_OneOfFieldMustBeNonNull" xml:space="preserve">
289-
<value>Value for oneof field {0} must be non-null.</value>
289+
<value>Value for OneOf field {0} must be non-null.</value>
290290
</data>
291291
<data name="ThrowHelper_Operation_NoSelectionSet" xml:space="preserve">
292292
<value>The specified selection does not have a selection set.</value>

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

Lines changed: 7 additions & 7 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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -700,16 +700,16 @@ 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 to indicate an Input Object is a Oneof Input Object.</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>
704704
</data>
705705
<data name="ThrowHelper_OneOfNoFieldSet" xml:space="preserve">
706-
<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>
706+
<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>
707707
</data>
708708
<data name="ThrowHelper_OneOfMoreThanOneFieldSet" xml:space="preserve">
709-
<value>More than one field of the Oneof Input Object `{0}` is set. 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>
709+
<value>More than one field of the OneOf Input Object `{0}` is set. 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>
710710
</data>
711711
<data name="ThrowHelper_OneOfFieldIsNull" xml:space="preserve">
712-
<value>`null` was set to the field `{0}`of the Oneof Input Object `{1}`. 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>
712+
<value>`null` was set to the field `{0}`of the OneOf Input Object `{1}`. 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>
713713
</data>
714714
<data name="ReflectionUtils_ExtractMethod_MethodExpected" xml:space="preserve">
715715
<value>Member is not a method!</value>
@@ -876,8 +876,8 @@ Type: `{0}`</value>
876876
<data name="ErrorHelper_ArgumentNotImplemented" xml:space="preserve">
877877
<value>The argument `{0}` of the implemented field `{1}` must be defined. The field `{2}` must include an argument of the same name for every argument defined on the implemented field of the interface type `{3}`.</value>
878878
</data>
879-
<data name="ErrorHelper_OneofInputObjectMustHaveNullableFieldsWithoutDefaults" xml:space="preserve">
880-
<value>Oneof Input Object `{0}` must only have nullable fields without default values. Edit your type and make the field{1} `{2}` nullable and remove any defaults.</value>
879+
<data name="ErrorHelper_OneOfInputObjectMustHaveNullableFieldsWithoutDefaults" xml:space="preserve">
880+
<value>OneOf Input Object `{0}` must only have nullable fields without default values. Edit your type and make the field{1} `{2}` nullable and remove any defaults.</value>
881881
</data>
882882
<data name="ErrorHelper_InputObjectMustNotHaveRecursiveNonNullableReferencesToSelf" xml:space="preserve">
883883
<value>Cannot reference Input Object `{0}` within itself through a series of non-null fields `{1}`.</value>

src/HotChocolate/Core/src/Types/Types/Directives/OneOfAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace HotChocolate.Types;
44

55
/// <summary>
66
/// The `@oneOf` directive is used within the type system definition language
7-
/// to indicate an Input Object is a Oneof Input Object.
7+
/// to indicate an Input Object is a OneOf Input Object.
88
///
99
/// <code>
1010
/// input UserUniqueCondition @oneOf {

src/HotChocolate/Core/src/Types/Types/Directives/OneOfDirectiveType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace HotChocolate.Types;
44

55
/// <summary>
66
/// The `@oneOf` directive is used within the type system definition language
7-
/// to indicate an Input Object is a Oneof Input Object.
7+
/// to indicate an Input Object is a OneOf Input Object.
88
///
99
/// <code>
1010
/// input UserUniqueCondition @oneOf {

src/HotChocolate/Core/src/Types/Types/Extensions/InputObjectTypeDescriptorExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static IInputObjectTypeDescriptor<T> Ignore<T>(
4040
}
4141

4242
/// <summary>
43-
/// Defines an input object type as a oneof input object type
43+
/// Defines an input object type as a OneOf input object type
4444
/// where only ever one field can hold a value.
4545
/// </summary>
4646
/// <param name="descriptor">
@@ -60,7 +60,7 @@ public static IInputObjectTypeDescriptor OneOf(this IInputObjectTypeDescriptor d
6060
}
6161

6262
/// <summary>
63-
/// Defines an input object type as a oneof input object type
63+
/// Defines an input object type as a OneOf input object type
6464
/// where only ever one field can hold a value.
6565
/// </summary>
6666
/// <param name="descriptor">

src/HotChocolate/Core/src/Types/Utilities/ErrorHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public static ISchemaError OneOfInputObjectMustHaveNullableFieldsWithoutDefaults
183183
string[] fieldNames)
184184
=> SchemaErrorBuilder.New()
185185
.SetMessage(
186-
ErrorHelper_OneofInputObjectMustHaveNullableFieldsWithoutDefaults,
186+
ErrorHelper_OneOfInputObjectMustHaveNullableFieldsWithoutDefaults,
187187
type.Name,
188188
fieldNames.Length is 1 ? string.Empty : "s",
189189
string.Join(", ", fieldNames))

0 commit comments

Comments
 (0)