Skip to content

Commit 256d0c1

Browse files
authored
chore: ordinal comparison
1 parent 27059b9 commit 256d0c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Reader/V2/OpenApiParameterDeserializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ internal static partial class OpenApiV2Deserializer
7575
{
7676
var schema = GetOrCreateSchema(o);
7777
schema.Type = type.ToJsonSchemaType();
78-
if (type.Equals("file"))
78+
if ("file".Equals(type, StringComparison.OrdinalIgnoreCase))
7979
{
8080
schema.Format = "binary";
8181
}

0 commit comments

Comments
 (0)