From 32d611530dc0d51de9a1795ff60f77a8060f3e9e Mon Sep 17 00:00:00 2001 From: Tobias Tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Mon, 4 Apr 2022 18:33:59 +0200 Subject: [PATCH 01/12] Change StreamWriter to use UTF8 encoding without BOM --- .../src/Language.SyntaxTree/Utilities/SyntaxPrinter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxPrinter.cs b/src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxPrinter.cs index 012db04e09d..431e9673044 100644 --- a/src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxPrinter.cs +++ b/src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxPrinter.cs @@ -63,9 +63,9 @@ public static async ValueTask PrintToAsync( CancellationToken cancellationToken = default) { #if NETSTANDARD2_0 - using var streamWriter = new StreamWriter(stream, Encoding.UTF8); + using var streamWriter = new StreamWriter(stream, new UTF8Encoding(false)); #else - await using var streamWriter = new StreamWriter(stream, Encoding.UTF8); + await using var streamWriter = new StreamWriter(stream, new UTF8Encoding(false)); #endif var syntaxWriter = StringSyntaxWriter.Rent(); From 5f11b7e5f6d6e39c679893359bafb34ef9ecf9cb Mon Sep 17 00:00:00 2001 From: Tobias Tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Mon, 4 Apr 2022 18:48:46 +0200 Subject: [PATCH 02/12] Fix SchemaSerializerTests --- .../SchemaSerializerTests.SerializeAsync_Serialize.snap | 2 +- .../__snapshots__/SchemaSerializerTests.SerializeTypes.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HotChocolate/Core/test/Types.Tests/__snapshots__/SchemaSerializerTests.SerializeAsync_Serialize.snap b/src/HotChocolate/Core/test/Types.Tests/__snapshots__/SchemaSerializerTests.SerializeAsync_Serialize.snap index 6eb9df8857d..47096658d35 100644 --- a/src/HotChocolate/Core/test/Types.Tests/__snapshots__/SchemaSerializerTests.SerializeAsync_Serialize.snap +++ b/src/HotChocolate/Core/test/Types.Tests/__snapshots__/SchemaSerializerTests.SerializeAsync_Serialize.snap @@ -1,4 +1,4 @@ -schema { +schema { query: Query } diff --git a/src/HotChocolate/Core/test/Types.Tests/__snapshots__/SchemaSerializerTests.SerializeTypes.snap b/src/HotChocolate/Core/test/Types.Tests/__snapshots__/SchemaSerializerTests.SerializeTypes.snap index 55475933ab4..5837265fc5c 100644 --- a/src/HotChocolate/Core/test/Types.Tests/__snapshots__/SchemaSerializerTests.SerializeTypes.snap +++ b/src/HotChocolate/Core/test/Types.Tests/__snapshots__/SchemaSerializerTests.SerializeTypes.snap @@ -1,3 +1,3 @@ -type Query { +type Query { foo: Foo } From 41a762cfd0e00c101c1a8ab770e4008470ac77d3 Mon Sep 17 00:00:00 2001 From: Tobias Tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Mon, 4 Apr 2022 19:03:05 +0200 Subject: [PATCH 03/12] Fix more tests --- .../src/Abstractions/Execution/ResultValue.cs | 2 +- .../Abstractions/SingleValueExtensionData.cs | 2 +- ...numValueT_ValueIsNull_SchemaException.snap | 1 - ...eIsNull_SchemaException_NETCOREAPP2_1.snap | 2 -- ...eIsNull_SchemaException_NETCOREAPP2_1.snap | 2 -- ...s.Serialize_EnumValue_WithDirectivesT.snap | 5 --- ...y_Is_Correctly_Detected_NETCOREAPP2_1.snap | 31 ------------------- ...DoNotAllow_DynamicInputTypes_OnFields.snap | 1 - ...amicInputTypes_OnFields_NETCOREAPP2_1.snap | 2 -- .../InputObjectTypeTests.ParseLiteral.snap | 6 ---- ...bjectTypeTests.ParseValue_ValueIsNull.snap | 1 - ...peTests.ParseValue_ValueIsSimpleInput.snap | 1 - ...TypeTests.Serialize_ValueIsDictionary.snap | 3 -- ...ypeTests.Serialize_ValueIsSimpleInput.snap | 3 -- ...ests.Deserialize_InputObject_AllIsSet.snap | 4 --- ..._InputObject_AllIsSet_ConstructorInit.snap | 4 --- ..._InputObject_AllIsSet_MissingRequired.snap | 13 -------- ..._InputObject_AllIsSet_OneInvalidField.snap | 13 -------- ...InputObject_AllIsSet_TwoInvalidFields.snap | 13 -------- ...lizerTests.Parse_InputObject_AllIsSet.snap | 4 --- ..._InputObject_AllIsSet_ConstructorInit.snap | 4 --- ..._InputObject_AllIsSet_MissingRequired.snap | 13 -------- ..._InputObject_AllIsSet_OneInvalidField.snap | 13 -------- ...InputObject_AllIsSet_TwoInvalidFields.snap | 13 -------- ...rgument_Type_IsInfered_From_Parameter.snap | 13 -------- ...fer_List_From_Queryable_NETCOREAPP2_1.snap | 26 ---------------- ...ts.Infer_Non_Null_Filed_NETCOREAPP2_1.snap | 22 ------------- .../ObjectTypeTests.Model_With_Nullables.snap | 11 ------- ...ectType_From_Dictionary_NETCOREAPP2_1.snap | 31 ------------------- ...stedOffsetPaging_NoCyclicDependencies.snap | 20 ------------ ...stedOffsetPaging_With_Indirect_Cycles.snap | 26 ---------------- ...Attribute_AsyncEnumerable_onSomething.snap | 26 ---------------- ...ribute_AsyncEnumerable_onSomethingObj.snap | 26 ---------------- ...te_AsyncEnumerable_onSomethingObjTask.snap | 26 ---------------- ...yncEnumerable_onSomethingObjValueTask.snap | 26 ---------------- ...ibute_AsyncEnumerable_onSomethingTask.snap | 26 ---------------- ..._AsyncEnumerable_onSomethingValueTask.snap | 26 ---------------- ...ribe_Attribute_Enumerable_onSomething.snap | 26 ---------------- ...e_Attribute_Enumerable_onSomethingObj.snap | 26 ---------------- ...tribute_Enumerable_onSomethingObjTask.snap | 26 ---------------- ...te_Enumerable_onSomethingObjValueTask.snap | 26 ---------------- ..._Attribute_Enumerable_onSomethingTask.snap | 26 ---------------- ...ibute_Enumerable_onSomethingValueTask.snap | 26 ---------------- ...ribe_Attribute_Observable_onSomething.snap | 26 ---------------- ...e_Attribute_Observable_onSomethingObj.snap | 26 ---------------- ...tribute_Observable_onSomethingObjTask.snap | 26 ---------------- ...te_Observable_onSomethingObjValueTask.snap | 26 ---------------- ..._Attribute_Observable_onSomethingTask.snap | 26 ---------------- ...ibute_Observable_onSomethingValueTask.snap | 26 ---------------- ...cribe_Attribute_Queryable_onSomething.snap | 26 ---------------- ...be_Attribute_Queryable_onSomethingObj.snap | 26 ---------------- ...ttribute_Queryable_onSomethingObjTask.snap | 26 ---------------- ...ute_Queryable_onSomethingObjValueTask.snap | 26 ---------------- ...e_Attribute_Queryable_onSomethingTask.snap | 26 ---------------- ...ribute_Queryable_onSomethingValueTask.snap | 26 ---------------- 55 files changed, 2 insertions(+), 927 deletions(-) delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.EnumValueT_ValueIsNull_SchemaException.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.EnumValueT_ValueIsNull_SchemaException_NETCOREAPP2_1.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.EnumValue_ValueIsNull_SchemaException_NETCOREAPP2_1.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.Serialize_EnumValue_WithDirectivesT.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeNonNullTests.Nullable_Dictionary_Is_Correctly_Detected_NETCOREAPP2_1.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.DoNotAllow_DynamicInputTypes_OnFields.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.DoNotAllow_DynamicInputTypes_OnFields_NETCOREAPP2_1.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.ParseLiteral.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.ParseValue_ValueIsNull.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.ParseValue_ValueIsSimpleInput.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.Serialize_ValueIsDictionary.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.Serialize_ValueIsSimpleInput.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_ConstructorInit.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_MissingRequired.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_OneInvalidField.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_TwoInvalidFields.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_ConstructorInit.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_MissingRequired.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_OneInvalidField.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_TwoInvalidFields.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Argument_Type_IsInfered_From_Parameter.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Infer_List_From_Queryable_NETCOREAPP2_1.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Infer_Non_Null_Filed_NETCOREAPP2_1.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Model_With_Nullables.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.ObjectType_From_Dictionary_NETCOREAPP2_1.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_NoCyclicDependencies.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_With_Indirect_Cycles.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomething.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingObj.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingObjTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingObjValueTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingValueTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomething.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingObj.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingObjTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingObjValueTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingValueTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomething.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingObj.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingObjTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingObjValueTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingValueTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomething.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingObj.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingObjTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingObjValueTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingTask.snap delete mode 100644 src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingValueTask.snap diff --git a/src/HotChocolate/Core/src/Abstractions/Execution/ResultValue.cs b/src/HotChocolate/Core/src/Abstractions/Execution/ResultValue.cs index 8e65c29475f..982c73c3825 100644 --- a/src/HotChocolate/Core/src/Abstractions/Execution/ResultValue.cs +++ b/src/HotChocolate/Core/src/Abstractions/Execution/ResultValue.cs @@ -19,7 +19,7 @@ namespace HotChocolate.Execution; /// Specifies if the is allowed to be null. /// /// - /// is null or . + /// is null or . /// public ResultValue(string name, object? value, bool isNullable = true) { diff --git a/src/HotChocolate/Core/src/Abstractions/SingleValueExtensionData.cs b/src/HotChocolate/Core/src/Abstractions/SingleValueExtensionData.cs index 0714cef38bc..2e92127112a 100644 --- a/src/HotChocolate/Core/src/Abstractions/SingleValueExtensionData.cs +++ b/src/HotChocolate/Core/src/Abstractions/SingleValueExtensionData.cs @@ -9,7 +9,7 @@ namespace HotChocolate; /// -/// An optimized extension data dictionary for or +/// An optimized extension data dictionary for or /// when only one value is needed. /// public sealed class SingleValueExtensionData : IReadOnlyDictionary diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.EnumValueT_ValueIsNull_SchemaException.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.EnumValueT_ValueIsNull_SchemaException.snap deleted file mode 100644 index cc927a8de8b..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.EnumValueT_ValueIsNull_SchemaException.snap +++ /dev/null @@ -1 +0,0 @@ -Value cannot be null. (Parameter 'value') diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.EnumValueT_ValueIsNull_SchemaException_NETCOREAPP2_1.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.EnumValueT_ValueIsNull_SchemaException_NETCOREAPP2_1.snap deleted file mode 100644 index 4ba84cc4ff9..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.EnumValueT_ValueIsNull_SchemaException_NETCOREAPP2_1.snap +++ /dev/null @@ -1,2 +0,0 @@ -Value cannot be null. -Parameter name: value diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.EnumValue_ValueIsNull_SchemaException_NETCOREAPP2_1.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.EnumValue_ValueIsNull_SchemaException_NETCOREAPP2_1.snap deleted file mode 100644 index 4ba84cc4ff9..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.EnumValue_ValueIsNull_SchemaException_NETCOREAPP2_1.snap +++ /dev/null @@ -1,2 +0,0 @@ -Value cannot be null. -Parameter name: value diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.Serialize_EnumValue_WithDirectivesT.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.Serialize_EnumValue_WithDirectivesT.snap deleted file mode 100644 index b28d86c99c8..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/EnumTypeTests.Serialize_EnumValue_WithDirectivesT.snap +++ /dev/null @@ -1,5 +0,0 @@ -enum Foo { - BAZ @bar -} - -directive @bar on EnumValue diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeNonNullTests.Nullable_Dictionary_Is_Correctly_Detected_NETCOREAPP2_1.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeNonNullTests.Nullable_Dictionary_Is_Correctly_Detected_NETCOREAPP2_1.snap deleted file mode 100644 index 17aec18f7ae..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeNonNullTests.Nullable_Dictionary_Is_Correctly_Detected_NETCOREAPP2_1.snap +++ /dev/null @@ -1,31 +0,0 @@ -schema { - query: Query -} - -type Query { - foo(input: FooInput!): String! -} - -input FooInput { - contextData: [KeyValuePairOfStringAndStringInput!] -} - -input KeyValuePairOfStringAndStringInput { - key: String - value: String -} - -"The `@defer` directive may be provided for fragment spreads and inline fragments to inform the executor to delay the execution of the current fragment to indicate deprioritization of the current fragment. A query with `@defer` directive will cause the request to potentially return multiple responses, where non-deferred data is delivered in the initial response and data deferred is delivered in a subsequent response. `@include` and `@skip` take precedence over `@defer`." -directive @defer("If this argument label has a value other than null, it will be passed on to the result of this defer directive. This label is intended to give client applications a way to identify to which fragment a deferred result belongs to." label: String "Deferred when true." if: Boolean) on FRAGMENT_SPREAD | INLINE_FRAGMENT - -"The @deprecated directive is used within the type system definition language to indicate deprecated portions of a GraphQL service’s schema,such as deprecated fields on a type or deprecated enum values." -directive @deprecated("Deprecations include a reason for why it is deprecated, which is formatted using Markdown syntax (as specified by CommonMark)." reason: String = "No longer supported") on FIELD_DEFINITION | ENUM_VALUE - -"Directs the executor to include this field or fragment only when the `if` argument is true." -directive @include("Included when true." if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT - -"Directs the executor to skip this field or fragment when the `if` argument is true." -directive @skip("Skipped when true." if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT - -"The `@stream` directive may be provided for a field of `List` type so that the backend can leverage technology such as asynchronous iterators to provide a partial list in the initial response, and additional list items in subsequent responses. `@include` and `@skip` take precedence over `@stream`." -directive @stream("If this argument label has a value other than null, it will be passed on to the result of this stream directive. This label is intended to give client applications a way to identify to which fragment a streamed result belongs to." label: String "The initial elements that shall be send down to the consumer." initialCount: Int! "Streamed when true." if: Boolean) on FIELD diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.DoNotAllow_DynamicInputTypes_OnFields.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.DoNotAllow_DynamicInputTypes_OnFields.snap deleted file mode 100644 index 03cc42491a9..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.DoNotAllow_DynamicInputTypes_OnFields.snap +++ /dev/null @@ -1 +0,0 @@ -The argument type has to be an input-type. (Parameter 'inputType') diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.DoNotAllow_DynamicInputTypes_OnFields_NETCOREAPP2_1.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.DoNotAllow_DynamicInputTypes_OnFields_NETCOREAPP2_1.snap deleted file mode 100644 index 5cdaf72eb5a..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.DoNotAllow_DynamicInputTypes_OnFields_NETCOREAPP2_1.snap +++ /dev/null @@ -1,2 +0,0 @@ -The argument type has to be an input-type. -Parameter name: inputType diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.ParseLiteral.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.ParseLiteral.snap deleted file mode 100644 index 489ee130153..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.ParseLiteral.snap +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Foo": { - "FooList": [] - }, - "Bar": "123" -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.ParseValue_ValueIsNull.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.ParseValue_ValueIsNull.snap deleted file mode 100644 index 1c1f54a26c1..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.ParseValue_ValueIsNull.snap +++ /dev/null @@ -1 +0,0 @@ -null diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.ParseValue_ValueIsSimpleInput.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.ParseValue_ValueIsSimpleInput.snap deleted file mode 100644 index 0fd8c1251e0..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.ParseValue_ValueIsSimpleInput.snap +++ /dev/null @@ -1 +0,0 @@ -{ name: "foo" } diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.Serialize_ValueIsDictionary.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.Serialize_ValueIsDictionary.snap deleted file mode 100644 index f6877412719..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.Serialize_ValueIsDictionary.snap +++ /dev/null @@ -1,3 +0,0 @@ -{ - "name": "foo" -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.Serialize_ValueIsSimpleInput.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.Serialize_ValueIsSimpleInput.snap deleted file mode 100644 index f6877412719..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputObjectTypeTests.Serialize_ValueIsSimpleInput.snap +++ /dev/null @@ -1,3 +0,0 @@ -{ - "name": "foo" -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet.snap deleted file mode 100644 index 9f837557614..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet.snap +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Field1": "abc", - "Field2": 123 -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_ConstructorInit.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_ConstructorInit.snap deleted file mode 100644 index 9f837557614..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_ConstructorInit.snap +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Field1": "abc", - "Field2": 123 -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_MissingRequired.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_MissingRequired.snap deleted file mode 100644 index f8dda14c9e9..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_MissingRequired.snap +++ /dev/null @@ -1,13 +0,0 @@ -{ - "errors": [ - { - "message": "The required input field \u0060field1\u0060 is missing.", - "path": [ - "field1" - ], - "extensions": { - "field": "Test2Input.field1" - } - } - ] -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_OneInvalidField.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_OneInvalidField.snap deleted file mode 100644 index 487b6494975..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_OneInvalidField.snap +++ /dev/null @@ -1,13 +0,0 @@ -{ - "errors": [ - { - "message": "The field \u0060field3\u0060 does not exist on the type \u0060TestInput\u0060.", - "path": [ - "root" - ], - "extensions": { - "type": "TestInput" - } - } - ] -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_TwoInvalidFields.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_TwoInvalidFields.snap deleted file mode 100644 index c30efdcf5b0..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Deserialize_InputObject_AllIsSet_TwoInvalidFields.snap +++ /dev/null @@ -1,13 +0,0 @@ -{ - "errors": [ - { - "message": "The fields \u0060\u0060field3\u0060, \u0060field4\u0060\u0060 do not exist on the type \u0060TestInput\u0060.", - "path": [ - "root" - ], - "extensions": { - "type": "TestInput" - } - } - ] -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet.snap deleted file mode 100644 index 9f837557614..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet.snap +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Field1": "abc", - "Field2": 123 -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_ConstructorInit.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_ConstructorInit.snap deleted file mode 100644 index 9f837557614..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_ConstructorInit.snap +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Field1": "abc", - "Field2": 123 -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_MissingRequired.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_MissingRequired.snap deleted file mode 100644 index f8dda14c9e9..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_MissingRequired.snap +++ /dev/null @@ -1,13 +0,0 @@ -{ - "errors": [ - { - "message": "The required input field \u0060field1\u0060 is missing.", - "path": [ - "field1" - ], - "extensions": { - "field": "Test2Input.field1" - } - } - ] -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_OneInvalidField.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_OneInvalidField.snap deleted file mode 100644 index 487b6494975..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_OneInvalidField.snap +++ /dev/null @@ -1,13 +0,0 @@ -{ - "errors": [ - { - "message": "The field \u0060field3\u0060 does not exist on the type \u0060TestInput\u0060.", - "path": [ - "root" - ], - "extensions": { - "type": "TestInput" - } - } - ] -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_TwoInvalidFields.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_TwoInvalidFields.snap deleted file mode 100644 index c30efdcf5b0..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputSerializerTests.Parse_InputObject_AllIsSet_TwoInvalidFields.snap +++ /dev/null @@ -1,13 +0,0 @@ -{ - "errors": [ - { - "message": "The fields \u0060\u0060field3\u0060, \u0060field4\u0060\u0060 do not exist on the type \u0060TestInput\u0060.", - "path": [ - "root" - ], - "extensions": { - "type": "TestInput" - } - } - ] -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Argument_Type_IsInfered_From_Parameter.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Argument_Type_IsInfered_From_Parameter.snap deleted file mode 100644 index c1ddf524828..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Argument_Type_IsInfered_From_Parameter.snap +++ /dev/null @@ -1,13 +0,0 @@ -schema { - query: QueryWithIntArg -} - -type QueryWithIntArg { - bar(foo: Int!): String -} - -"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1." -scalar Int - -"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text." -scalar String diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Infer_List_From_Queryable_NETCOREAPP2_1.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Infer_List_From_Queryable_NETCOREAPP2_1.snap deleted file mode 100644 index fdf214159f7..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Infer_List_From_Queryable_NETCOREAPP2_1.snap +++ /dev/null @@ -1,26 +0,0 @@ -schema { - query: MyListQuery -} - -type Bar { - baz: String! -} - -type MyListQuery { - list: [Bar] -} - -"The `@defer` directive may be provided for fragment spreads and inline fragments to inform the executor to delay the execution of the current fragment to indicate deprioritization of the current fragment. A query with `@defer` directive will cause the request to potentially return multiple responses, where non-deferred data is delivered in the initial response and data deferred is delivered in a subsequent response. `@include` and `@skip` take precedence over `@defer`." -directive @defer("If this argument label has a value other than null, it will be passed on to the result of this defer directive. This label is intended to give client applications a way to identify to which fragment a deferred result belongs to." label: String "Deferred when true." if: Boolean) on FRAGMENT_SPREAD | INLINE_FRAGMENT - -"The @deprecated directive is used within the type system definition language to indicate deprecated portions of a GraphQL service’s schema,such as deprecated fields on a type or deprecated enum values." -directive @deprecated("Deprecations include a reason for why it is deprecated, which is formatted using Markdown syntax (as specified by CommonMark)." reason: String = "No longer supported") on FIELD_DEFINITION | ENUM_VALUE - -"Directs the executor to include this field or fragment only when the `if` argument is true." -directive @include("Included when true." if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT - -"Directs the executor to skip this field or fragment when the `if` argument is true." -directive @skip("Skipped when true." if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT - -"The `@stream` directive may be provided for a field of `List` type so that the backend can leverage technology such as asynchronous iterators to provide a partial list in the initial response, and additional list items in subsequent responses. `@include` and `@skip` take precedence over `@stream`." -directive @stream("If this argument label has a value other than null, it will be passed on to the result of this stream directive. This label is intended to give client applications a way to identify to which fragment a streamed result belongs to." label: String "The initial elements that shall be send down to the consumer." initialCount: Int! "Streamed when true." if: Boolean) on FIELD diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Infer_Non_Null_Filed_NETCOREAPP2_1.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Infer_Non_Null_Filed_NETCOREAPP2_1.snap deleted file mode 100644 index 68959749cbe..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Infer_Non_Null_Filed_NETCOREAPP2_1.snap +++ /dev/null @@ -1,22 +0,0 @@ -schema { - query: Bar -} - -type Bar { - baz: String! -} - -"The `@defer` directive may be provided for fragment spreads and inline fragments to inform the executor to delay the execution of the current fragment to indicate deprioritization of the current fragment. A query with `@defer` directive will cause the request to potentially return multiple responses, where non-deferred data is delivered in the initial response and data deferred is delivered in a subsequent response. `@include` and `@skip` take precedence over `@defer`." -directive @defer("If this argument label has a value other than null, it will be passed on to the result of this defer directive. This label is intended to give client applications a way to identify to which fragment a deferred result belongs to." label: String "Deferred when true." if: Boolean) on FRAGMENT_SPREAD | INLINE_FRAGMENT - -"The @deprecated directive is used within the type system definition language to indicate deprecated portions of a GraphQL service’s schema,such as deprecated fields on a type or deprecated enum values." -directive @deprecated("Deprecations include a reason for why it is deprecated, which is formatted using Markdown syntax (as specified by CommonMark)." reason: String = "No longer supported") on FIELD_DEFINITION | ENUM_VALUE - -"Directs the executor to include this field or fragment only when the `if` argument is true." -directive @include("Included when true." if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT - -"Directs the executor to skip this field or fragment when the `if` argument is true." -directive @skip("Skipped when true." if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT - -"The `@stream` directive may be provided for a field of `List` type so that the backend can leverage technology such as asynchronous iterators to provide a partial list in the initial response, and additional list items in subsequent responses. `@include` and `@skip` take precedence over `@stream`." -directive @stream("If this argument label has a value other than null, it will be passed on to the result of this stream directive. This label is intended to give client applications a way to identify to which fragment a streamed result belongs to." label: String "The initial elements that shall be send down to the consumer." initialCount: Int! "Streamed when true." if: Boolean) on FIELD diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Model_With_Nullables.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Model_With_Nullables.snap deleted file mode 100644 index 9f1ff8b5e43..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.Model_With_Nullables.snap +++ /dev/null @@ -1,11 +0,0 @@ -schema { - query: FooWithNullable -} - -type FooWithNullable { - bar: Boolean - bars: [Boolean] -} - -"The `Boolean` scalar type represents `true` or `false`." -scalar Boolean diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.ObjectType_From_Dictionary_NETCOREAPP2_1.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.ObjectType_From_Dictionary_NETCOREAPP2_1.snap deleted file mode 100644 index eee5c7c20d6..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.ObjectType_From_Dictionary_NETCOREAPP2_1.snap +++ /dev/null @@ -1,31 +0,0 @@ -schema { - query: FooWithDict -} - -type Bar { - baz: String! -} - -type FooWithDict { - map: [KeyValuePairOfStringAndBar!] -} - -type KeyValuePairOfStringAndBar { - key: String - value: Bar -} - -"The `@defer` directive may be provided for fragment spreads and inline fragments to inform the executor to delay the execution of the current fragment to indicate deprioritization of the current fragment. A query with `@defer` directive will cause the request to potentially return multiple responses, where non-deferred data is delivered in the initial response and data deferred is delivered in a subsequent response. `@include` and `@skip` take precedence over `@defer`." -directive @defer("If this argument label has a value other than null, it will be passed on to the result of this defer directive. This label is intended to give client applications a way to identify to which fragment a deferred result belongs to." label: String "Deferred when true." if: Boolean) on FRAGMENT_SPREAD | INLINE_FRAGMENT - -"The @deprecated directive is used within the type system definition language to indicate deprecated portions of a GraphQL service’s schema,such as deprecated fields on a type or deprecated enum values." -directive @deprecated("Deprecations include a reason for why it is deprecated, which is formatted using Markdown syntax (as specified by CommonMark)." reason: String = "No longer supported") on FIELD_DEFINITION | ENUM_VALUE - -"Directs the executor to include this field or fragment only when the `if` argument is true." -directive @include("Included when true." if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT - -"Directs the executor to skip this field or fragment when the `if` argument is true." -directive @skip("Skipped when true." if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT - -"The `@stream` directive may be provided for a field of `List` type so that the backend can leverage technology such as asynchronous iterators to provide a partial list in the initial response, and additional list items in subsequent responses. `@include` and `@skip` take precedence over `@stream`." -directive @stream("If this argument label has a value other than null, it will be passed on to the result of this stream directive. This label is intended to give client applications a way to identify to which fragment a streamed result belongs to." label: String "The initial elements that shall be send down to the consumer." initialCount: Int! "Streamed when true." if: Boolean) on FIELD diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_NoCyclicDependencies.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_NoCyclicDependencies.snap deleted file mode 100644 index a23f75cfe42..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_NoCyclicDependencies.snap +++ /dev/null @@ -1,20 +0,0 @@ -{ - "data": { - "users": { - "items": [ - { - "parents": { - "items": [ - { - "firstName": "Mother" - }, - { - "firstName": "Father" - } - ] - } - } - ] - } - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_With_Indirect_Cycles.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_With_Indirect_Cycles.snap deleted file mode 100644 index d7f37ad0df4..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_With_Indirect_Cycles.snap +++ /dev/null @@ -1,26 +0,0 @@ -{ - "data": { - "users": { - "items": [ - { - "groups": { - "items": [ - { - "members": { - "items": [ - { - "firstName": "Mother" - }, - { - "firstName": "Father" - } - ] - } - } - ] - } - } - ] - } - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomething.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomething.snap deleted file mode 100644 index b92e2bda30a..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomething.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomething": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomething": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomething": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingObj.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingObj.snap deleted file mode 100644 index 537f18f573b..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingObj.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingObj": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObj": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObj": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingObjTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingObjTask.snap deleted file mode 100644 index dc469080154..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingObjTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingObjTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingObjValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingObjValueTask.snap deleted file mode 100644 index a1c36fb253d..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingObjValueTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingObjValueTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjValueTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjValueTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingTask.snap deleted file mode 100644 index 072a592dc1f..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingValueTask.snap deleted file mode 100644 index 291de681beb..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_AsyncEnumerable_onSomethingValueTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingValueTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingValueTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingValueTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomething.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomething.snap deleted file mode 100644 index b92e2bda30a..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomething.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomething": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomething": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomething": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingObj.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingObj.snap deleted file mode 100644 index 537f18f573b..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingObj.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingObj": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObj": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObj": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingObjTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingObjTask.snap deleted file mode 100644 index dc469080154..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingObjTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingObjTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingObjValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingObjValueTask.snap deleted file mode 100644 index a1c36fb253d..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingObjValueTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingObjValueTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjValueTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjValueTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingTask.snap deleted file mode 100644 index 072a592dc1f..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingValueTask.snap deleted file mode 100644 index 291de681beb..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Enumerable_onSomethingValueTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingValueTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingValueTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingValueTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomething.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomething.snap deleted file mode 100644 index b92e2bda30a..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomething.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomething": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomething": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomething": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingObj.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingObj.snap deleted file mode 100644 index 537f18f573b..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingObj.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingObj": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObj": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObj": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingObjTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingObjTask.snap deleted file mode 100644 index dc469080154..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingObjTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingObjTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingObjValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingObjValueTask.snap deleted file mode 100644 index a1c36fb253d..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingObjValueTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingObjValueTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjValueTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjValueTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingTask.snap deleted file mode 100644 index 072a592dc1f..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingValueTask.snap deleted file mode 100644 index 291de681beb..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Observable_onSomethingValueTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingValueTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingValueTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingValueTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomething.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomething.snap deleted file mode 100644 index b92e2bda30a..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomething.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomething": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomething": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomething": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingObj.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingObj.snap deleted file mode 100644 index 537f18f573b..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingObj.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingObj": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObj": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObj": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingObjTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingObjTask.snap deleted file mode 100644 index dc469080154..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingObjTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingObjTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingObjValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingObjValueTask.snap deleted file mode 100644 index a1c36fb253d..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingObjValueTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingObjValueTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjValueTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingObjValueTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingTask.snap deleted file mode 100644 index 072a592dc1f..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingValueTask.snap deleted file mode 100644 index 291de681beb..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Queryable_onSomethingValueTask.snap +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "Data": { - "onSomethingValueTask": "a" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingValueTask": "b" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - }, - { - "Data": { - "onSomethingValueTask": "c" - }, - "Errors": null, - "Extensions": null, - "ContextData": null - } -] From 3948b59506db5989917f121d0aae54b32c7a7547 Mon Sep 17 00:00:00 2001 From: Tobias Tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Wed, 6 Apr 2022 21:54:50 +0200 Subject: [PATCH 04/12] Fix Download_Schema_SDL test --- .../IntrospectionClientTests.Download_Schema_SDL.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/__snapshots__/IntrospectionClientTests.Download_Schema_SDL.snap b/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/__snapshots__/IntrospectionClientTests.Download_Schema_SDL.snap index c015db5e5e2..7d797b2ef97 100644 --- a/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/__snapshots__/IntrospectionClientTests.Download_Schema_SDL.snap +++ b/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/__snapshots__/IntrospectionClientTests.Download_Schema_SDL.snap @@ -1,4 +1,4 @@ -schema { +schema { query: Query mutation: Mutation subscription: Subscription From 34f729d38fa427b0a6f77be2f5ec9ccd41961818 Mon Sep 17 00:00:00 2001 From: Tobias Tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Wed, 6 Apr 2022 22:01:58 +0200 Subject: [PATCH 05/12] Try to fix Ambiguous method in cref argument --- .../Core/src/Abstractions/Execution/IQueryRequestBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HotChocolate/Core/src/Abstractions/Execution/IQueryRequestBuilder.cs b/src/HotChocolate/Core/src/Abstractions/Execution/IQueryRequestBuilder.cs index 10ea924a6f8..8da642ecc6c 100644 --- a/src/HotChocolate/Core/src/Abstractions/Execution/IQueryRequestBuilder.cs +++ b/src/HotChocolate/Core/src/Abstractions/Execution/IQueryRequestBuilder.cs @@ -62,7 +62,7 @@ IQueryRequestBuilder InitializeGlobalState( IQueryRequestBuilder SetProperties( IDictionary? properties); - /// + /// IQueryRequestBuilder InitializeGlobalState( IDictionary? initialState); @@ -70,7 +70,7 @@ IQueryRequestBuilder InitializeGlobalState( IQueryRequestBuilder SetProperties( IReadOnlyDictionary? properties); - /// + /// IQueryRequestBuilder InitializeGlobalState( IReadOnlyDictionary? initialState); From 3b3931c877247acb8038a1ad2707bc2c650c56a3 Mon Sep 17 00:00:00 2001 From: Tobias Tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Wed, 6 Dec 2023 09:37:41 +0100 Subject: [PATCH 06/12] Add throwOnInvalidBytes --- .../src/Language.SyntaxTree/Utilities/SyntaxPrinter.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxPrinter.cs b/src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxPrinter.cs index 536a0ffe65d..102294bdba9 100644 --- a/src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxPrinter.cs +++ b/src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxPrinter.cs @@ -61,9 +61,13 @@ public static async ValueTask PrintToAsync( CancellationToken cancellationToken = default) { #if NETSTANDARD2_0 - using var streamWriter = new StreamWriter(stream, new UTF8Encoding(false)); + using var streamWriter = new StreamWriter( + stream, + new UTF8Encoding(encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true)); #else - await using var streamWriter = new StreamWriter(stream, new UTF8Encoding(false)); + await using var streamWriter = new StreamWriter( + stream, + new UTF8Encoding(encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true)); #endif var syntaxWriter = StringSyntaxWriter.Rent(); From 8db211fa18c0c69175fe9e0814285e0da71b6ea9 Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Sun, 21 Jan 2024 15:04:01 +0100 Subject: [PATCH 07/12] build --- .../Integration/MultiProfileTest.Client.cs | 4 ++-- .../Integration/StarWarsIntrospectionTest.Client.cs | 2 +- .../Integration/StarWarsOnReviewSubCompletionTest.Client.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs index cb7c3096290..4e3e53a2c10 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs @@ -1149,7 +1149,7 @@ public enum Episode { NewHope, Empire, - Jedi, + Jedi } // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator @@ -1604,7 +1604,7 @@ public partial interface IMultiProfileClient public enum MultiProfileClientProfileKind { InMemory, - Default, + Default } } diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs index 5ee00b2602a..b02d269af1e 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs @@ -2834,7 +2834,7 @@ public enum __TypeKind /// /// Indicates this type is a non-null. `ofType` is a valid field. /// - NonNull, + NonNull } // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs index 75c99f5e72d..04fa4dba24f 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs @@ -445,7 +445,7 @@ public partial interface IStarWarsOnReviewSubCompletionClient public enum StarWarsOnReviewSubCompletionClientProfileKind { InMemory, - Default, + Default } } From 89c3a6c06d898e10df19b5cb0555c747f71cd8d3 Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Sun, 21 Jan 2024 15:07:08 +0100 Subject: [PATCH 08/12] Update src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs --- .../Integration/StarWarsOnReviewSubCompletionTest.Client.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs index 04fa4dba24f..75c99f5e72d 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs @@ -445,7 +445,7 @@ public partial interface IStarWarsOnReviewSubCompletionClient public enum StarWarsOnReviewSubCompletionClientProfileKind { InMemory, - Default + Default, } } From b0765ade7e29e878753375179e2102c72c0699eb Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Sun, 21 Jan 2024 15:07:26 +0100 Subject: [PATCH 09/12] Update src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs --- .../Integration/StarWarsIntrospectionTest.Client.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs index b02d269af1e..5ee00b2602a 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs @@ -2834,7 +2834,7 @@ public enum __TypeKind /// /// Indicates this type is a non-null. `ofType` is a valid field. /// - NonNull + NonNull, } // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator From baa07c9e56955886057e3d4d7de2eff7430eda58 Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Sun, 21 Jan 2024 15:07:50 +0100 Subject: [PATCH 10/12] Update src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs --- .../Integration/MultiProfileTest.Client.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs index 4e3e53a2c10..6580972e9c3 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs @@ -1149,7 +1149,7 @@ public enum Episode { NewHope, Empire, - Jedi + Jedi, } // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator From 8fa8e1e8b285a7306e87234f39561c4423085970 Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Sun, 21 Jan 2024 15:08:06 +0100 Subject: [PATCH 11/12] Update src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs --- .../Integration/MultiProfileTest.Client.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs index 6580972e9c3..cb7c3096290 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs @@ -1604,7 +1604,7 @@ public partial interface IMultiProfileClient public enum MultiProfileClientProfileKind { InMemory, - Default + Default, } } From d180c324c8a1529d7ae4e2b31f07419f91dcf21a Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Sun, 21 Jan 2024 15:09:01 +0100 Subject: [PATCH 12/12] build --- .../Integration/MultiProfileTest.Client.cs | 4 ++-- .../Integration/StarWarsIntrospectionTest.Client.cs | 2 +- .../Integration/StarWarsOnReviewSubCompletionTest.Client.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs index cb7c3096290..4e3e53a2c10 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs @@ -1149,7 +1149,7 @@ public enum Episode { NewHope, Empire, - Jedi, + Jedi } // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator @@ -1604,7 +1604,7 @@ public partial interface IMultiProfileClient public enum MultiProfileClientProfileKind { InMemory, - Default, + Default } } diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs index 5ee00b2602a..b02d269af1e 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs @@ -2834,7 +2834,7 @@ public enum __TypeKind /// /// Indicates this type is a non-null. `ofType` is a valid field. /// - NonNull, + NonNull } // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs index 75c99f5e72d..04fa4dba24f 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs @@ -445,7 +445,7 @@ public partial interface IStarWarsOnReviewSubCompletionClient public enum StarWarsOnReviewSubCompletionClientProfileKind { InMemory, - Default, + Default } }