Skip to content

Commit

Permalink
remove unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Afsalmc committed Dec 14, 2022
1 parent 698f7e8 commit f2c3f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static class OpenApiTypeMapper
[typeof(ulong)] = () => new OpenApiSchema { Type = "integer", Format = "int64" },
[typeof(float)] = () => new OpenApiSchema { Type = "number", Format = "float" },
[typeof(double)] = () => new OpenApiSchema { Type = "number", Format = "double" },
[typeof(decimal)] = () => new OpenApiSchema { Type = "number", Format = "double" },
[typeof(decimal)] = () => new OpenApiSchema { Type = "number", Format = "decimal" },
[typeof(DateTime)] = () => new OpenApiSchema { Type = "string", Format = "date-time" },
[typeof(DateTimeOffset)] = () => new OpenApiSchema { Type = "string", Format = "date-time" },
[typeof(Guid)] = () => new OpenApiSchema { Type = "string", Format = "uuid" },
Expand All @@ -36,8 +36,8 @@ public static class OpenApiTypeMapper
[typeof(long?)] = () => new OpenApiSchema { Type = "integer", Format = "int64", Nullable = true },
[typeof(ulong?)] = () => new OpenApiSchema { Type = "integer", Format = "int64", Nullable = true },
[typeof(float?)] = () => new OpenApiSchema { Type = "number", Format = "float", Nullable = true },
[typeof(decimal?)] = () => new OpenApiSchema { Type = "number", Format = "decimal", Nullable = true },
[typeof(double?)] = () => new OpenApiSchema { Type = "number", Format = "double", Nullable = true },
[typeof(decimal?)] = () => new OpenApiSchema { Type = "number", Format = "double", Nullable = true },
[typeof(DateTime?)] = () => new OpenApiSchema { Type = "string", Format = "date-time", Nullable = true },
[typeof(DateTimeOffset?)] = () => new OpenApiSchema { Type = "string", Format = "date-time", Nullable = true },
[typeof(Guid?)] = () => new OpenApiSchema { Type = "string", Format = "uuid", Nullable = true },
Expand Down

0 comments on commit f2c3f93

Please sign in to comment.