You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Grpc/JsonTranscoding/src/Microsoft.AspNetCore.Grpc.JsonTranscoding/Internal/Json/JsonConverterHelper.cs
Copy file name to clipboardExpand all lines: src/Grpc/JsonTranscoding/test/Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests/ConverterTests/JsonConverterReadTests.cs
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ public void NonJsonName_CaseInsensitive()
@@ -569,7 +569,7 @@ public void OneOf_CaseInsensitive_Failure()
569
569
""ONEOFNAME2"": ""test""
570
570
}";
571
571
572
-
AssertReadJsonError<HelloRequest>(json, ex =>Assert.Equal("Multiple values specified for oneof oneof_test",ex.Message.TrimEnd('.')),deserializeOld:false,settings:newGrpcJsonSettings{FieldNamesCaseInsensitive=true});
572
+
AssertReadJsonError<HelloRequest>(json, ex =>Assert.Equal("Multiple values specified for oneof oneof_test",ex.Message.TrimEnd('.')),deserializeOld:false,settings:newGrpcJsonSettings{PropertyNameCaseInsensitive=true});
573
573
}
574
574
575
575
[Fact]
@@ -634,7 +634,7 @@ public void NullableWrappers_CaseInsensitive()
@@ -775,7 +775,7 @@ public void FieldNameCase_CaseInsensitive_Failure()
775
775
{
776
776
varjson=@"{""a"":10,""A"":20}";
777
777
778
-
AssertReadJsonError<FieldNameCaseMessage>(json, ex =>Assert.Equal("The JSON property name for 'Transcoding.FieldNameCaseMessage.A' collides with another property.",ex.Message),deserializeOld:false,settings:newGrpcJsonSettings{FieldNamesCaseInsensitive=true});
778
+
AssertReadJsonError<FieldNameCaseMessage>(json, ex =>Assert.Equal("The JSON property name for 'Transcoding.FieldNameCaseMessage.A' collides with another property.",ex.Message),deserializeOld:false,settings:newGrpcJsonSettings{PropertyNameCaseInsensitive=true});
0 commit comments