@@ -100,9 +100,11 @@ public static Type MapOpenApiPrimitiveTypeToSimpleType(this OpenApiSchema schema
100
100
( "boolean" , null , false ) => typeof ( bool ) ,
101
101
( "integer" , "int32" , false ) => typeof ( int ) ,
102
102
( "integer" , "int64" , false ) => typeof ( long ) ,
103
+ ( "integer" , null , false ) => typeof ( int ) ,
103
104
( "number" , "float" , false ) => typeof ( float ) ,
104
105
( "number" , "double" , false ) => typeof ( double ) ,
105
106
( "number" , "decimal" , false ) => typeof ( decimal ) ,
107
+ ( "number" , null , false ) => typeof ( double ) ,
106
108
( "string" , "byte" , false ) => typeof ( byte ) ,
107
109
( "string" , "date-time" , false ) => typeof ( DateTimeOffset ) ,
108
110
( "string" , "uuid" , false ) => typeof ( Guid ) ,
@@ -113,8 +115,10 @@ public static Type MapOpenApiPrimitiveTypeToSimpleType(this OpenApiSchema schema
113
115
( "string" , "uri" , false ) => typeof ( Uri ) ,
114
116
( "integer" , "int32" , true ) => typeof ( int ? ) ,
115
117
( "integer" , "int64" , true ) => typeof ( long ? ) ,
118
+ ( "integer" , null , true ) => typeof ( int ? ) ,
116
119
( "number" , "float" , true ) => typeof ( float ? ) ,
117
120
( "number" , "double" , true ) => typeof ( double ? ) ,
121
+ ( "number" , null , true ) => typeof ( double ? ) ,
118
122
( "number" , "decimal" , true ) => typeof ( decimal ? ) ,
119
123
( "string" , "byte" , true ) => typeof ( byte ? ) ,
120
124
( "string" , "date-time" , true ) => typeof ( DateTimeOffset ? ) ,
0 commit comments