Skip to content

Commit 2ad17ba

Browse files
committed
Update type and format to lowercase
1 parent dca3151 commit 2ad17ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static Type MapOpenApiPrimitiveTypeToSimpleType(this OpenApiSchema schema
9595
throw new ArgumentNullException(nameof(schema));
9696
}
9797

98-
var type = (schema.Type, schema.Format, schema.Nullable) switch
98+
var type = (schema.Type?.ToLowerInvariant(), schema.Format.ToLowerInvariant(), schema.Nullable) switch
9999
{
100100
("boolean", null, false) => typeof(bool),
101101
("integer", "int32", false) => typeof(int),

0 commit comments

Comments
 (0)