We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17079ee commit 9063d2aCopy full SHA for 9063d2a
src/Microsoft.OpenApi/Services/OpenApiAnyComparer.cs
@@ -56,12 +56,7 @@ public override void Compare(
56
target.Write(targetWriter, OpenApiSpecVersion.OpenApi3_0);
57
var targetValue = targetStringWriter.GetStringBuilder().ToString();
58
59
- if (string.IsNullOrWhiteSpace(sourceValue) && string.IsNullOrWhiteSpace(targetValue))
60
- {
61
- return;
62
- }
63
-
64
- if (string.Compare(sourceValue, targetValue, StringComparison.CurrentCultureIgnoreCase) != 0)
+ if (string.Compare(sourceValue, targetValue, StringComparison.InvariantCulture) != 0)
65
{
66
comparisonContext.AddOpenApiDifference(new OpenApiDifference
67
0 commit comments