From f2c3f9375da66feb32877eb63c01ca3f9715d45c Mon Sep 17 00:00:00 2001 From: Afsal Rahman Date: Wed, 14 Dec 2022 11:15:49 +0530 Subject: [PATCH] remove unnecessary changes --- src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs b/src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs index 970b3a976..36f08bcb0 100644 --- a/src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs +++ b/src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs @@ -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" }, @@ -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 },