tests fixes and some product advisories tunes ups

This commit is contained in:
master
2026-01-30 07:57:43 +02:00
parent 644887997c
commit 55744f6a39
345 changed files with 26290 additions and 2267 deletions

View File

@@ -111,12 +111,30 @@ public static class CanonicalJsonAssert
return null;
}
if (!current.TryGetProperty(part, out var next))
// Try exact match first
if (current.TryGetProperty(part, out var next))
{
current = next;
continue;
}
// Try case-insensitive match (canonical JSON may use different casing)
JsonElement? found = null;
foreach (var prop in current.EnumerateObject())
{
if (string.Equals(prop.Name, part, StringComparison.OrdinalIgnoreCase))
{
found = prop.Value;
break;
}
}
if (found is null)
{
return null;
}
current = next;
current = found.Value;
}
return current;