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
In this example, I want to compare this object. But I want to ignore the Id property. Using "User.Adresses[0].Id" in exclude paths, I can ignore this value.
But the result of the Diff is :
{
"User": {
"Adresses": {
"_t": "a"
}
}
}
I see the following in the source code in the beginning of the ArrayDiff method:
var result = JObject.Parse(@"{ ""_t"": ""a"" }");
Because there is no difference between the two values (ignoring the excluded paths), this result object is returned. In this case, when there is no difference, this method should return null instead.
The text was updated successfully, but these errors were encountered:
When comparing an object containing an array, using an exclude path for a property in that array incorrectly returns
{ "_t": "a" }
.Example:
In this example, I want to compare this object. But I want to ignore the Id property. Using "User.Adresses[0].Id" in exclude paths, I can ignore this value.
But the result of the Diff is :
I see the following in the source code in the beginning of the ArrayDiff method:
var result = JObject.Parse(@"{ ""_t"": ""a"" }");
Because there is no difference between the two values (ignoring the excluded paths), this result object is returned. In this case, when there is no difference, this method should return null instead.
The text was updated successfully, but these errors were encountered: