Skip to content

Commit da035fa

Browse files
committed
- fixes string comparison
Signed-off-by: Vincent Biret <[email protected]>
1 parent 6bda890 commit da035fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Validations/Rules/OpenApiPathsRules.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static class OpenApiPathsRules
2626
{
2727
context.Enter(pathName);
2828

29-
if (pathName == null || !pathName.StartsWith("/"))
29+
if (pathName == null || !pathName.StartsWith("/", StringComparison.OrdinalIgnoreCase))
3030
{
3131
context.CreateError(nameof(PathNameMustBeginWithSlash),
3232
string.Format(SRResource.Validation_PathItemMustBeginWithSlash, pathName));

0 commit comments

Comments
 (0)