@@ -100,9 +100,11 @@ public static Type MapOpenApiPrimitiveTypeToSimpleType(this OpenApiSchema schema
100100 ( "boolean" , null , false ) => typeof ( bool ) ,
101101 ( "integer" , "int32" , false ) => typeof ( int ) ,
102102 ( "integer" , "int64" , false ) => typeof ( long ) ,
103+ ( "integer" , null , false ) => typeof ( int ) ,
103104 ( "number" , "float" , false ) => typeof ( float ) ,
104105 ( "number" , "double" , false ) => typeof ( double ) ,
105106 ( "number" , "decimal" , false ) => typeof ( decimal ) ,
107+ ( "number" , null , false ) => typeof ( double ) ,
106108 ( "string" , "byte" , false ) => typeof ( byte ) ,
107109 ( "string" , "date-time" , false ) => typeof ( DateTimeOffset ) ,
108110 ( "string" , "uuid" , false ) => typeof ( Guid ) ,
@@ -113,8 +115,10 @@ public static Type MapOpenApiPrimitiveTypeToSimpleType(this OpenApiSchema schema
113115 ( "string" , "uri" , false ) => typeof ( Uri ) ,
114116 ( "integer" , "int32" , true ) => typeof ( int ? ) ,
115117 ( "integer" , "int64" , true ) => typeof ( long ? ) ,
118+ ( "integer" , null , true ) => typeof ( int ? ) ,
116119 ( "number" , "float" , true ) => typeof ( float ? ) ,
117120 ( "number" , "double" , true ) => typeof ( double ? ) ,
121+ ( "number" , null , true ) => typeof ( double ? ) ,
118122 ( "number" , "decimal" , true ) => typeof ( decimal ? ) ,
119123 ( "string" , "byte" , true ) => typeof ( byte ? ) ,
120124 ( "string" , "date-time" , true ) => typeof ( DateTimeOffset ? ) ,
0 commit comments