@@ -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