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 6bda890 commit da035faCopy full SHA for da035fa
src/Microsoft.OpenApi/Validations/Rules/OpenApiPathsRules.cs
@@ -26,7 +26,7 @@ public static class OpenApiPathsRules
26
{
27
context.Enter(pathName);
28
29
- if (pathName == null || !pathName.StartsWith("/"))
+ if (pathName == null || !pathName.StartsWith("/", StringComparison.OrdinalIgnoreCase))
30
31
context.CreateError(nameof(PathNameMustBeginWithSlash),
32
string.Format(SRResource.Validation_PathItemMustBeginWithSlash, pathName));
0 commit comments