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 3a9779d commit 5363e35Copy full SHA for 5363e35
src/Microsoft.OpenApi/Validations/Rules/OpenApiResponsesRules.cs
@@ -47,7 +47,7 @@ public static partial class OpenApiResponsesRules
47
{
48
context.Enter(key);
49
50
- if (key != "default" && !StatusCodeRegex
+ if (!"default".Equals(key, StringComparison.OrdinalIgnoreCase) && !StatusCodeRegex
51
#if NET8_0_OR_GREATER
52
().IsMatch(key)
53
#else
0 commit comments