Skip to content

Commit f2c3f93

Browse files
committed
remove unnecessary changes
1 parent 698f7e8 commit f2c3f93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static class OpenApiTypeMapper
2222
[typeof(ulong)] = () => new OpenApiSchema { Type = "integer", Format = "int64" },
2323
[typeof(float)] = () => new OpenApiSchema { Type = "number", Format = "float" },
2424
[typeof(double)] = () => new OpenApiSchema { Type = "number", Format = "double" },
25-
[typeof(decimal)] = () => new OpenApiSchema { Type = "number", Format = "double" },
25+
[typeof(decimal)] = () => new OpenApiSchema { Type = "number", Format = "decimal" },
2626
[typeof(DateTime)] = () => new OpenApiSchema { Type = "string", Format = "date-time" },
2727
[typeof(DateTimeOffset)] = () => new OpenApiSchema { Type = "string", Format = "date-time" },
2828
[typeof(Guid)] = () => new OpenApiSchema { Type = "string", Format = "uuid" },
@@ -36,8 +36,8 @@ public static class OpenApiTypeMapper
3636
[typeof(long?)] = () => new OpenApiSchema { Type = "integer", Format = "int64", Nullable = true },
3737
[typeof(ulong?)] = () => new OpenApiSchema { Type = "integer", Format = "int64", Nullable = true },
3838
[typeof(float?)] = () => new OpenApiSchema { Type = "number", Format = "float", Nullable = true },
39+
[typeof(decimal?)] = () => new OpenApiSchema { Type = "number", Format = "decimal", Nullable = true },
3940
[typeof(double?)] = () => new OpenApiSchema { Type = "number", Format = "double", Nullable = true },
40-
[typeof(decimal?)] = () => new OpenApiSchema { Type = "number", Format = "double", Nullable = true },
4141
[typeof(DateTime?)] = () => new OpenApiSchema { Type = "string", Format = "date-time", Nullable = true },
4242
[typeof(DateTimeOffset?)] = () => new OpenApiSchema { Type = "string", Format = "date-time", Nullable = true },
4343
[typeof(Guid?)] = () => new OpenApiSchema { Type = "string", Format = "uuid", Nullable = true },

0 commit comments

Comments
 (0)